Code

Fixed macro visible flag post
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Jan 2007 04:52:26 +0000 (04:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Jan 2007 04:52:26 +0000 (04:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5486 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/macro/class_gofonMacro.inc

index 93c0859ad8ead7d657c24a62727824945778cf1c..85c011751353beda37cf34879cfcb6257f1b8e40 100755 (executable)
@@ -151,16 +151,6 @@ class macro extends plugin
       $smarty->assign("goFonMacroVisibleChecked","");
     }
 
-    if(isset($_POST['goFonMacroVisible'])) {
-      $this->goFonMacroVisible= 1 ;
-      $smarty->assign("goFonMacroVisibleChecked"," checked ");
-    }else  {
-      if(isset($_POST['displayName'])){
-        $this->goFonMacroVisible= 0 ;
-        $smarty->assign("goFonMacroVisibleChecked","");
-      }
-    }
-    
     if($this->dn != "new"){
       $smarty->assign("disable_cn"," disabled ");
     }else{
@@ -358,6 +348,12 @@ class macro extends plugin
       if($this->dn!= "new"){
         $this->cn = $this->orig_cn;
       }
+
+      if(isset($_POST['goFonMacroVisible'])) {
+        $this->goFonMacroVisible= 1 ;
+      }else  {
+        $this->goFonMacroVisible= 0 ;
+      }
     }
   }