Code

Should work now.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 May 2008 14:10:24 +0000 (14:10 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 May 2008 14:10:24 +0000 (14:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11128 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/gosaTriggered.pm

index fba518cdaa9cbea499d5cf26076b2a499b6a4c23..14916f64287b95a8390d2f8fe408f250ce0e1c75 100644 (file)
@@ -892,14 +892,12 @@ sub trigger_activate_new {
                        # Set FAIstate
                        if(defined($ldap_entry->get_value('FAIstate'))) {
                                if(!($ldap_entry->get_value('FAIstate') eq 'install')) {
-                                       $ldap_entry->changetype('modify');
                                        $ldap_entry->replace(
                                                'FAIstate' => 'install'
                                        );
                                        my $replace_result = $ldap_entry->update($ldap_handle);
                                }
                        } else {
-                               $ldap_entry->changetype('add');
                                $ldap_entry->add(
                                        'FAIstate' => 'install'
                                );