From f3f94b13775cf20296c38dc780d599787a1d68ed Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 6 Jul 2009 14:05:43 +0000 Subject: [PATCH] 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 --- gosa-si/modules/GosaPackages.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- 2.30.2