From: rettenbe Date: Mon, 6 Jul 2009 14:05:43 +0000 (+0000) Subject: periodic value within db should be 'none' or /d*_$periodic/ X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3f94b13775cf20296c38dc780d599787a1d68ed;p=gosa.git periodic value within db should be 'none' or /d*_$periodic/ git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13893 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index 60ee896db..decc502a8 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -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) {