Code

Fixed PHP warning messagesFixed PHP warning messages
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 09:45:11 +0000 (09:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 09:45:11 +0000 (09:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18547 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/propertyEditor/class_propertyEditor.inc
gosa-core/plugins/addons/propertyEditor/property-list.tpl

index d8d26e04351165c840021ba6874183b3b7469250..93b605ab15f4721536cfb03646e1a1697c606125 100644 (file)
@@ -9,6 +9,8 @@ class propertyEditor extends management
 
     var $toBeMigrated = array();
 
+    var $warningAccepted = FALSE;
+
     function __construct($config,$ui)
     {
         $this->config = $config;
@@ -62,7 +64,7 @@ class propertyEditor extends management
 
         // Once accepted hide the warning message        
         if(isset($_POST['warningAccepted'])){
-            $this->warningNotAccepted = TRUE;
+            $this->warningAccepted = TRUE;
         }
 
         // Execute registered management event listeners.
@@ -119,7 +121,7 @@ class propertyEditor extends management
         }
 
         $smarty = get_smarty();
-        $smarty->assign("warningNotAccepted", $this->warningNotAccepted);
+        $smarty->assign("warningAccepted", $this->warningAccepted);
         $smarty->assign("ignoreLdapProperties", $this->config->configRegistry->ignoreLdapProperties);
         return(management::execute());
     }
index e22885feb687df4f1b83bd4633ffe53771c67845..44bd4c0745d3928b89244c78a74287cfcce72362 100644 (file)
@@ -1,4 +1,4 @@
-{if !$warningNotAccepted}
+{if !$warningAccepted}
 
     <table summary="{t}Warning message{/t}" style='width:100%'>
      <tr>
@@ -18,8 +18,8 @@
      </tr>
     </table>
     <hr>
-      <input type='checkbox' name='warningAccepted' value='1'>
-        {t}I know the risks and want to modify properties!{/t}
+      <input type='checkbox' name='warningAccepted' value='1' id='warningAccepted'>
+      <label for='warningAccepted'>{t}I know the risks and want to modify properties!{/t}</label>
     <hr>
     <div class="plugin-actions">
         <button name='goOn'>{msgPool type='okButton'}</button>