Code

periodic value within db should be 'none' or /d*_$periodic/
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Jul 2009 14:05:43 +0000 (14:05 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Jul 2009 14:05:43 +0000 (14:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13893 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/GosaPackages.pm

index 60ee896db11f140fbf7dfbf06ec6ba3e27a76940..decc502a8159503aee3a5dc8f173efba241a4cf9 100644 (file)
@@ -330,6 +330,13 @@ sub process_job_msg {
         }
     }
 
+    # Default db value is 'none' otherwise use systax /\d+_$periodic/
+    my $db_periodic_value = 'none';
+    if ($periodic ne 'none')
+    {
+        $db_periodic_value = $periodic_time."_".$periodic;
+    }
+
     # Add job to job queue
     if( $error == 0 ) {
         my $func_dic = {table=>$main::job_queue_tn, 
@@ -345,7 +352,7 @@ sub process_job_msg {
                        plainname=>$plain_name,
             siserver=>"localhost",
             modified=>"1",
-            periodic=>$periodic_time."_".$periodic,
+            periodic=>$db_periodic_value,
         };
         my $res = $main::job_db->add_dbentry($func_dic);
         if (not $res == 0) {