Code

Update the DB even if there's a modify - not just on create
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 08:31:20 +0000 (08:31 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 08:31:20 +0000 (08:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10805 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc

index 4f2a6adb22364fe67fba2a420748a6f525dd9be4..565501bc00b1b4a7ecb61e3a3e26bf014e26db93 100644 (file)
@@ -287,9 +287,11 @@ class servrepository extends goService
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
       $this->handle_post_events("add");
-      if(count($this->attrs)){
-        $this->trigger_si_fai_server_reload();
-      }
+    }
+
+    # If there were changes, just tell the server to reload information
+    if(count($this->attrs)){
+           $this->trigger_si_fai_server_reload();
     }
 
     if($this->initially_was_account){