X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=9dd83864c87abca7542ae2ccb0f2686a501b7a49;hb=46ccf08f0aaa3f7d779af1d6e223b301f25efbb8;hp=0babe89645c57e0916684eabb34c3af39715fbff;hpb=6a1f9891c4d90dcd283c4bfd3e75069103c736eb;p=gosa.git diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 0babe8964..9dd83864c 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -360,6 +360,11 @@ class MultiSelectWindow{ Store data also into a session var, to keep the checkboxes check after reload */ function save_object() { + /* Get up to date config */ + if(isset($this->parent->config)){ + $this->config = $this->parent->config; + } + /* Update current base */ if($this->DepartmentsAdded){ $s_action =""; @@ -476,12 +481,56 @@ class MultiSelectWindow{ $val = preg_replace("/\*\**/","*",$val); $this->array_Regexes[$key]['value'] = $val; $this->$box['name'] = $val; + $_SESSION['MultiDialogFilters'][$this->filterName][$box['name']] = $val; } } } - } + + /* Create header snapshot value */ + function get_snapshot_header() + { + $str = " "; + if($this->parent->snapshotEnabled()){ + $ok = false; + foreach($this->parent->get_used_snapshot_bases() as $base){ + $ok |= count($this->parent->getAllDeletedSnapshots($base)) >= 1 ; + } + if($ok){ + $str = " "; + }else{ + $str = " "; + } + + $str .= " "; + } + return($str); + } + + + function GetSnapShotActions($dn) + { + $str= ""; + if($this->parent->snapshotEnabled()){ + + if(count($this->parent->Available_SnapsShots($dn))){ + $str.= " "; + } else { + $str = " "; + } + + $str.= " "; + } + + return($str); + } + + /* this function adds the sub-departments of the current tree to the list */ function AddDepartments($base = false,$numtabs = 3) {