X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=9dd83864c87abca7542ae2ccb0f2686a501b7a49;hb=e1d95c29272ce8b78eb366517e668aa6f49736a2;hp=82aac59eee198e016f7bdae4c8acf11ecfb2b04b;hpb=7859b8b3047467324f9b3c30c6ffc1215dc513c9;p=gosa.git diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 82aac59ee..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 =""; @@ -486,7 +491,7 @@ class MultiSelectWindow{ /* Create header snapshot value */ function get_snapshot_header() { - $str = ""; + $str = " "; if($this->parent->snapshotEnabled()){ $ok = false; foreach($this->parent->get_used_snapshot_bases() as $base){ @@ -508,19 +513,20 @@ class MultiSelectWindow{ function GetSnapShotActions($dn) { - $str = ""; + $str= ""; if($this->parent->snapshotEnabled()){ - $str .=" "; - if(count($this->parent->Available_SnapsShots($dn))){ - $str .=" "; - }else{ - $str.= " "; + } else { + $str = " "; } + + $str.= " "; } + return($str); }