Code

Updated events
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 14:47:10 +0000 (14:47 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 14:47:10 +0000 (14:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9393 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/gosaTriggered.pm

index eef5d60bdd5e6d2402399b3cc6b1ab798ba141a6..79143ff9c74290b2158bd084f6192f2650de7d8d 100644 (file)
@@ -329,8 +329,13 @@ sub trigger_action_activate {
 
     change_goto_state('active', \@{$msg_hash->{target}});
                                              
-    my @out_msg_l;
-    return @out_msg_l;
+    my $out_hash = &create_xml_hash("set_activated_for_installation", $source, $macaddress);
+    if( exists $msg_hash->{'jobdb_id'} ) { 
+        &add_content2xml_hash($out_hash, 'jobdb_id', @{$msg_hash->{'jobdb_id'}}[0]); 
+    }
+    my $out_msg = &create_xml_string($out_hash);
+
+    return ( $out_msg );
 }