Code

Updated Post names in sudo plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 09:53:45 +0000 (09:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 09:53:45 +0000 (09:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15250 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc
gosa-plugins/sudo/admin/sudo/class_target_list_users.inc

index ad4f87cfdec9e8f91735d68138dcf84fac543fc6..9807677d14c1d5cdd6e8735f86d5cdf152715772 100644 (file)
@@ -175,7 +175,7 @@ class sudo extends plugin
     }
    
     /* Add selected hosts  to the sudoUser list */ 
-    if(isset($_POST['SaveMultiSelectWindow']) && $this->dialog instanceof target_list_users){
+    if(isset($_POST['SavetargetSelectDialog']) && $this->dialog instanceof target_list_users){
       if($this->acl_is_writeable("sudoUser")){
         foreach($this->dialog->save() as $entry){
           if(in_array("posixGroup",$entry['objectClass'])){
@@ -208,7 +208,7 @@ class sudo extends plugin
     }
    
     /* Add selected hosts  to the sudoHost list */ 
-    if(isset($_POST['SaveMultiSelectWindow']) && $this->dialog instanceof target_list_systems){
+    if(isset($_POST['SavetargetSelectDialog']) && $this->dialog instanceof target_list_systems){
       if($this->acl_is_writeable("sudoHost")){
         foreach($this->dialog->save() as $entry){
           $cn = trim($entry['cn'][0]);
@@ -226,7 +226,7 @@ class sudo extends plugin
        Dialog handling / display / close  
      *********************/ 
   
-    if(isset($_POST['CloseMultiSelectWindow']) && is_object($this->dialog)){
+    if(isset($_POST['ClosetargetSelectDialog']) && is_object($this->dialog)){
       unset($this->dialog);
       $this->dialog = NULL;
     }    
index 44d5af18b7ee5cda809bbb253df85fcd64e17e4a..80e63c7a95293e69356b0173d223ff7a5d51415e 100644 (file)
@@ -54,9 +54,9 @@ class target_list_systems extends management
     $str = management::execute();
     $str.= "<p class='separator'>&nbsp;</p>
       <p style=\"text-align:right\">
-      <input type=submit name=\"SaveMultiSelectWindow\" value=\"".msgPool::okButton()."\">
+      <input type=submit name=\"SavetargetSelectDialog\" value=\"".msgPool::okButton()."\">
       &nbsp; 
-      <input type=submit name=\"CloseMultiSelectWindow\" value=\"".msgPool::cancelButton()."\">
+      <input type=submit name=\"ClosetargetSelectDialog\" value=\"".msgPool::cancelButton()."\">
       </p>";
     return($str);
   }
index 6e841ac551f5b7d6d0dee06f91453bb5b10f498d..4fc798179a59ba2d577c59a4900c85c854cd456f 100644 (file)
@@ -54,9 +54,9 @@ class target_list_users extends management
     $str = management::execute();
     $str.= "<p class='separator'>&nbsp;</p>
       <p style=\"text-align:right\">
-      <input type=submit name=\"SaveMultiSelectWindow\" value=\"".msgPool::okButton()."\">
+      <input type=submit name=\"SavetargetSelectDialog\" value=\"".msgPool::okButton()."\">
       &nbsp; 
-      <input type=submit name=\"CloseMultiSelectWindow\" value=\"".msgPool::cancelButton()."\">
+      <input type=submit name=\"ClosetargetSelectDialog\" value=\"".msgPool::cancelButton()."\">
       </p>";
     return($str);
   }