Code

Fixed blocklist management, hide blocklist type after editing, because LDAP wouldn...
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 May 2005 15:38:37 +0000 (15:38 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 May 2005 15:38:37 +0000 (15:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@302 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/blocklists/class_blocklistManagement.inc
plugins/gofax/blocklists/generic.tpl

index 3056fb6af96e7f08a90440833e493ba4753d60c4..bc9bd46ea9c77168a8377ac455e17314df15e284 100644 (file)
@@ -236,6 +236,11 @@ class blocklist extends plugin
                $smarty->assign("$val"."ACL", chkacl($this->acl, "$val"));
        }
 
+       /* Lock blocklist type for non new entries */
+       if ($this->dn != "new"){
+               $smarty->assign('typeACL', "disabled");
+       }
+
        /* Show main page */
        return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
   }
index 17bea618ecd656fa0d65d1a95ac0f2bd6d169f6f..4ab667e1a1b13dfc932a4c277e2177c50e7c9f0b 100644 (file)
@@ -53,7 +53,7 @@
    <td>
      <h2><img align="center" src="images/false.png"> {t}Blocked numbers{/t}</h2>
      <select style="width:400px; height:200px;" name="numbers[]" size=15 multiple>
-      {html_options values=$goFaxBlocklist output=$goFaxBlocklist selected=$type_select}
+      {html_options values=$goFaxBlocklist output=$goFaxBlocklist}
      </select>
      <br>
      <input name="number" size=25 maxlength=60 {$goFaxBlocklistACL}>&nbsp;