Not sure whereas this patch's reached you...
Thanks.
--
Frédéric DEMIANS
http://www.tamil.fr/u/fdemians.html
>From
4c1efe7c79d8ac6eb6f275823d9a0ea948d1315c Mon Sep 17 00:00:00 2001
From: Frederic Demians <f.demians@tamil.fr>
Date: Sun, 7 Oct 2007 01:54:56 +0200
Subject: [PATCH] Correct a bug preventing from modifying member records
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
my %newdata;
if ($op eq 'insert' || $op eq 'modify' || $op eq 'save') {
- my @names=($borrower_data?keys %$borrower_data:$input->param());
- foreach my $key (@names){
- $newdata{$key}=$input->param($key)||'';
- $newdata{$key}=~ s/\"/"/gg unless $key eq 'borrowernotes' or $key eq 'opacnote';
- }
+
+ my @names= $borrower_data && $op ne 'save' ? keys %$borrower_data : $input->param();
+ foreach my $key (@names) {
+ $newdata{$key} = $input->param($key) || '';
+ $newdata{$key} =~ s/\"/"/gg unless $key eq 'borrowernotes' or $key eq 'opacnote';
+ }
# WARN : some tests must be done whatever the step, because the librarian can click on any tab.