Query param support in TreeMultiselectField (fixes #2438)

Thanks to @bummzack for the initial fix
This commit is contained in:
Ingo Schommer 2013-10-02 15:42:29 +02:00
parent 37ada61282
commit 837304b81b

View File

@ -119,7 +119,7 @@ class TreeMultiselectField extends TreeDropdownField {
if ($this->form){
$dataUrlTree = $this->Link('tree');
if (isset($idArray) && count($idArray)){
$dataUrlTree .= '?forceValue='.implode(',',$idArray);
$dataUrlTree = Controller::join_links($dataUrlTree, '?forceValue='.implode(',',$idArray));
}
}
return FormField::create_tag(