Code

Added msg dialog to user deletion
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Sep 2007 12:40:42 +0000 (12:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Sep 2007 12:40:42 +0000 (12:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7329 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_msg_dialog.inc
plugins/admin/users/class_userManagement.inc

index 2006c58e8d91646691a267e3d68d7aaca4e3012c..90b4b07f26e45b11bca9cf45a8af08a9ee734905 100644 (file)
@@ -68,7 +68,7 @@ class msg_dialog
 
                $seen = "";
                if(isset($_POST['closed_msg_dialogs'])){
-                       $seen = $_POST['closed_msg_dialogs'];
+#                      $seen = $_POST['closed_msg_dialogs'];
                }
 
                if(isset($_SESSION['msg_dialogs']) && is_array($_SESSION['msg_dialogs'])){
@@ -81,6 +81,7 @@ class msg_dialog
                                        $return.= $dialog->execute();
                                        $dialog_ids= $dialog->get_ID().",".$dialog_ids;
                                }
+                               unset($_SESSION['msg_dialogs'][$key]);
                        }
                }
                $dialog_ids = preg_replace("/,$/","",$dialog_ids);
index dd471f8ea63865558854bb31ff5e3f21732dd00a..4a4ec5aea60a54cefaf2e1503f7e79d9e5184ae5 100644 (file)
@@ -490,6 +490,7 @@ class userManagement extends plugin
         $this->usertab->delete ();
         unset ($this->usertab);
         $this->usertab= NULL;
+        msg_dialog::display(_("User delted"),_("User successfully removed."),INFO_DIALOG);
       } else {
 
         /* Normally this shouldn't be reached, send some extra