From: hickert Date: Tue, 9 Jan 2007 04:52:26 +0000 (+0000) Subject: Fixed macro visible flag post X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa7ca57fe18de52efeb2087cf8b15bf6693db376;p=gosa.git Fixed macro visible flag post git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5486 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/macro/class_gofonMacro.inc b/plugins/gofon/macro/class_gofonMacro.inc index 93c0859ad..85c011751 100755 --- a/plugins/gofon/macro/class_gofonMacro.inc +++ b/plugins/gofon/macro/class_gofonMacro.inc @@ -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 ; + } } }