Code

Added ogroups acls
[gosa.git] / include / class_MultiSelectWindow.inc
index a5bccb58913a406e6598f8c6659324e325318663..9dd83864c87abca7542ae2ccb0f2686a501b7a49 100644 (file)
@@ -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 ="";
@@ -514,6 +519,8 @@ class MultiSelectWindow{
       if(count($this->parent->Available_SnapsShots($dn))){
         $str.= "<input class='center' type='image' src='images/restore.png'
           alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($dn)."' title='"._("Restore snapshot")."'>&nbsp;";
+      } else {
+        $str = "<img class='center' src='images/restore_grey.png'>&nbsp;";
       }
 
       $str.= "<input class='center' type='image' src='images/snapshot.png'