Code

Added hook calls for DHCP
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Oct 2007 12:33:59 +0000 (12:33 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Oct 2007 12:33:59 +0000 (12:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7602 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDHCP.inc

index eaeafbc3c4b78bcdae00bb7dffd3ce8096215a2c..9f6f93f9074f14acaed5daac38bc848e9950f881 100644 (file)
@@ -522,9 +522,15 @@ class servdhcp extends goService
         if ($modify){
           $ldap->modify($attrs);
           show_ldap_error($ldap->get_error(), _("Can't save DHCP object!"));
+
+          /* Optionally execute a command after we're done */
+          $this->handle_post_events("modify");
         } else {
           $ldap->add($attrs);
           show_ldap_error($ldap->get_error(), _("Can't save DHCP object!"));
+
+          /* Optionally execute a command after we're done */
+          $this->handle_post_events("create");
         }
       }
     }