summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6df0c95)
raw | patch | inline | side by side (parent: 6df0c95)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Mar 2010 13:40:09 +0000 (13:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Mar 2010 13:40:09 +0000 (13:40 +0000) |
-authoritative service wasn't selectable
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16457 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16457 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 594ae7bc24b7110022ce557c2a8a8de0171ff805..1e65cb56d9ed3a67185d3ba3393cbe8dc4d561a0 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 222d0e5cc7acc383755bd13c45fc93bb3446639d..4d571daba075fd3513f393dcdf26ed688862e7c3 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>