From: cajus Date: Fri, 20 May 2005 12:32:15 +0000 (+0000) Subject: Cleanupts in phone and fax accounts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac582652abbbf97513309cc0e0ec99e282d76b6d;p=gosa.git Cleanupts in phone and fax accounts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@282 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 7a2296292..41a5f5876 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -96,6 +96,8 @@ class gofaxAccount extends plugin } elseif ( !$this->parent->by_object['mailAccount']->is_account){ $smarty->assign("has_mailaccount", "false"); $this->has_mailAccount= false; + } else { + $smarty->assign("has_mailaccount", "true"); } /* Do we need to flip is_account state? */ @@ -347,6 +349,8 @@ class gofaxAccount extends plugin $smarty->assign("list", $list); if (isset($_POST['department'])){ $smarty->assign("department", $_POST['department']); + } else { + $smarty->assign("department", ""); } $display.= $smarty->fetch (get_template_path('lists.tpl', TRUE, dirname(__FILE__))); return ($display); @@ -371,6 +375,8 @@ class gofaxAccount extends plugin $smarty->assign("list", $list); if (isset($_POST['department'])){ $smarty->assign("department", $_POST['department']); + } else { + $smarty->assign("department", ""); } $display.= $smarty->fetch (get_template_path('lists.tpl', TRUE, dirname(__FILE__))); return ($display); diff --git a/plugins/gofax/faxaccount/lists.tpl b/plugins/gofax/faxaccount/lists.tpl index a03020446..eaa396185 100644 --- a/plugins/gofax/faxaccount/lists.tpl +++ b/plugins/gofax/faxaccount/lists.tpl @@ -7,7 +7,7 @@ {html_options values=$cblocklist output=$cblocklist}
- +   @@ -21,9 +21,7 @@

- {if $have_js ne ""} - {/if} {t}List of predefined blocklists{/t} "; $forwarder_list.= ""; @@ -225,6 +229,8 @@ class phoneAccount extends plugin } elseif ( !$this->parent->by_object['mailAccount']->is_account){ $smarty->assign("has_mailaccount", "false"); $this->has_mailAccount= false; + } else { + $smarty->assign("has_mailaccount", "true"); } /* Show main page */