From: ivan Date: Mon, 11 Apr 2011 17:44:07 +0000 (+0000) Subject: fix "times" condition to not run one extra, RT#11834 X-Git-Tag: freeside_2_1_3~315 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=32435aafaa39dad97a95c619d1649b3be22ffb1e;p=freeside.git fix "times" condition to not run one extra, RT#11834 --- diff --git a/FS/FS/part_event/Condition/times.pm b/FS/FS/part_event/Condition/times.pm index 46c2967bc..14ff23b9d 100644 --- a/FS/FS/part_event/Condition/times.pm +++ b/FS/FS/part_event/Condition/times.pm @@ -34,7 +34,7 @@ sub condition { ), } ); - scalar(@existing) <= $self->option('run_times'); + scalar(@existing) < $self->option('run_times'); } @@ -52,7 +52,7 @@ sub condition_sql { AND status != 'failed' )"; - "$existing <= $run_times"; + "$existing < $run_times"; }