From da077cea56f25ce29c09d2a6f0f9d6c2581d4e95 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 7 May 2008 08:31:20 +0000 Subject: [PATCH] Update the DB even if there's a modify - not just on create git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10805 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/repository/class_servRepository.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc index 4f2a6adb2..565501bc0 100644 --- a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc +++ b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc @@ -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){ -- 2.30.2