summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 348f6d1)
raw | patch | inline | side by side (parent: 348f6d1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Mar 2010 13:37:55 +0000 (13:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Mar 2010 13:37:55 +0000 (13:37 +0000) |
-authoritative service wasn't selectable
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16456 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16456 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc
index 925e6ac50090d27f7c6a4b4a73267a324d7cbf0f..d23821d5b3d8e3663074b47e82e35a09a2d4f7ba 100644 (file)
$smarty->assign("$value", $this->statements->get(preg_replace('/_/', '-', $value)));
}
- $smarty->assign("authoritative", $this->statements->get('authoritative'));
+ $smarty->assign("authoritative", $this->statements->exists('authoritative'));
/* Show main page */
$display= $smarty->fetch(get_template_path('dhcp_service.tpl', TRUE, dirname(__FILE__))).$this->network->execute();
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/dhcp_service.tpl b/gosa-plugins/dhcp/admin/systems/services/dhcp/dhcp_service.tpl
index 94f709ae7e2d5d4f41dc1a095e4ae0a6c5801dc9..e33beaf93c323ec1b070b9b0aa22e4ecfe98938e 100644 (file)
<tr>
<td width="50%">
{render acl=$acl}
- <input id='authoritative' type=checkbox name="authoritative" value="1" {$authoritative}> {t}Authoritative service{/t}<br>
+ <input id='authoritative' type=checkbox name="authoritative" value="1" {if $authoritative} checked {/if}> {t}Authoritative service{/t}<br>
{/render}
<br>
{t}Dynamic DNS update{/t}
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/dhcp_sharedNetwork.tpl b/gosa-plugins/dhcp/admin/systems/services/dhcp/dhcp_sharedNetwork.tpl
index b7467147f0b4026d08bc8af5a316934d1656c52f..2effa3e7952f809b44ae671b014004702e06a7af 100644 (file)
<tr>
<td>
{render acl=$acl}
- <input type=checkbox name="authoritative" value="1" {$authoritative}
+ <input type=checkbox name="authoritative" value="1" {if $authoritative} checked {/if}
title="{t}Select if this server is authoritative for this shared network{/t}">{t}Authoritative server{/t}
{/render}
</td>