Code

Do notm display Mac Address as must if it isn't
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 10:59:54 +0000 (10:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 10:59:54 +0000 (10:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20287 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_termDNS.inc
gosa-plugins/systems/admin/systems/network.tpl

index 70deaaa06c9ad9a1f8bc1590bdf7a256e9334435..404e831a5d0ea90a477c78e4d9706096b988c5f7 100644 (file)
@@ -299,6 +299,7 @@ class termDNS extends plugin
         }
 
         $smarty->assign("additionalHostNumbers",$this->additionalHostNumbers);
+        $smarty->assign("MACisMust",$this->MACisMust);
 
         /**********
          * Autonet completion
index ac1119a71183ded098791a34267898d51584c732..5bd992e271374c1f64ed740bb37265f1abf6209c 100644 (file)
@@ -39,7 +39,7 @@
                                </tr>
                                <tr>
                                        <td>
-            <LABEL     for="macAddress">{t}MAC-address{/t}</LABEL>{$must}
+            <LABEL     for="macAddress">{t}MAC-address{/t}</LABEL>{if $MACisMust}{$must}{/if}
           </td>
                                        <td>
             {render acl=$macAddressACL}