summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f552044)
raw | patch | inline | side by side (parent: f552044)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Aug 2007 09:14:21 +0000 (09:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Aug 2007 09:14:21 +0000 (09:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7045 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_dhcpHost.inc | patch | blob | history | |
plugins/admin/systems/class_termDNS.inc | patch | blob | history | |
plugins/admin/systems/dhcp_host.tpl | patch | blob | history |
index 479707c00f0c62de65b7133cd829900893e45979..c6ce4dacf93e512be0409d9489ce75c44c781f07 100644 (file)
function save_object()
{
/* Save remaining attributes */
- if (isset($_POST['hwtype'])){
+ if (isset($_POST['dhcp_host_posted'])){
/* Assemble hwAddress */
if (isset($_POST['dhcpHWAddress'])){
}
/* Save fixed address */
- if (!$this->realGosaHost && $_POST['fixedaddr'] != ""){
- $this->statements['fixed-address']= get_post('fixedaddr');
- } else {
- unset ($this->statements['fixed-address']);
+ if(!$this->realGosaHost){
+ if ($_POST['fixedaddr'] != ""){
+ $this->statements['fixed-address']= get_post('fixedaddr');
+ } else {
+ unset ($this->statements['fixed-address']);
+ }
}
$this->options['host-name']= $this->cn;
}
}
}
-
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
index 6c82146b1a1821c023bb2b30eadc46176de77444..8f0c21fc7668ed493c5d75f7e382f70547d665c9 100644 (file)
unset($attrs['dn']);
$ldap->cd("cn=".$this->cn.",".$this->dhcpParentNode);
$res = $ldap->add($attrs);
+# print_a($attrs);
+# print("cn=".$this->cn.",".$this->dhcpParentNode);
show_ldap_error($ldap->get_error(),_("Tried to add new dhcp entry failed."));
}
index c5ee7a2810692ace1cc6e8e25e5782656deb680d..602c51255288c0ec5b797e58288e62db6249e742 100644 (file)
</td>
</tr>
</table>
-
+<input type='hidden' name='dhcp_host_posted' value='1'>
<p class="seperator"></p>
<!-- Place cursor in correct field -->