bug 2856 followup - display form correctly when modifying patron
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 30 Dec 2008 01:19:30 +0000 (19:19 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 30 Dec 2008 01:20:16 +0000 (19:20 -0600)
Upon further testing, original patch for 2856 had effect
of displaying form with blank values when modifying
an existing patron record.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
members/memberentry.pl

index 91095ad..133eefb 100755 (executable)
@@ -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');