[Koha-patches] [PATCH] bug 2856 followup - display form correctly when modifying patron
Galen Charlton
galen.charlton at liblime.com
Tue Dec 30 02:19:48 CET 2008
Upon further testing, original patch for 2856 had effect
of displaying form with blank values when modifying
an existing patron record.
---
members/memberentry.pl | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/members/memberentry.pl b/members/memberentry.pl
index 91095ad..133eefb 100755
--- a/members/memberentry.pl
+++ b/members/memberentry.pl
@@ -70,6 +70,10 @@ my $cardnumber = $input->param('cardnumber');
my $check_member = $input->param('check_member');
my $name_city = $input->param('name_city');
my $nodouble = $input->param('nodouble');
+$nodouble = 1 if $op eq 'modify'; # FIXME hack to represent fact that if we're
+ # modifying an existing patron, it ipso facto
+ # isn't a duplicate. Marking FIXME because this
+ # script needs to be refactored.
my $select_city = $input->param('select_city');
my $nok = $input->param('nok');
my $guarantorinfo = $input->param('guarantorinfo');
--
1.5.5.GIT
More information about the Koha-patches
mailing list