From 5f5d093c5b5742dc21ca96c0b58bcee3a074da7d Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 7 Jul 2010 15:58:59 +0200 Subject: [PATCH] (bug #4954) allow date expiry modification only on step 0 and 3 This add a verification, to allow automatic modification of expiry date, only if we are on a page that allow modification of expiry date. Signed-off-by: Galen Charlton --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index c121460040..6ec6d8e2ae 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -278,7 +278,7 @@ if ($op eq 'save' || $op eq 'insert'){ } } -if ($op eq 'modify' || $op eq 'insert' || $op eq 'save' ){ +if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save') and ($step == 0 or $step == 3 )){ if (exists ($newdata{'dateexpiry'}) && !($newdata{'dateexpiry'})){ my $arg2 = $newdata{'dateenrolled'} || C4::Dates->today('iso'); $newdata{'dateexpiry'} = GetExpiryDate($newdata{'categorycode'},$arg2); -- 2.39.5