From ae206e86adf8eb281fd1029364c1e705f2ffa197 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Thu, 4 Oct 2007 13:45:30 -0500 Subject: [PATCH] fix for bug 1468, but not sure if this is the best Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Members.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index b2f57c98c0..3dc493a363 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -608,7 +608,7 @@ sub ModMember { if ( $data{'password'} eq '****' ) { delete $data{'password'}; foreach (keys %data) - {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_}) } ; + {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "flags" and $_ ne "borrowernumber" and $hashborrowerfields{$_}) } ; $query = "UPDATE borrowers SET ".join (",",@parameters) ." WHERE borrowernumber=$data{'borrowernumber'}"; # warn "$query"; @@ -619,7 +619,7 @@ sub ModMember { $data{'password'} = md5_base64( $data{'password'} ) if ( $data{'password'} ne '' ); delete $data{'password'} if ($data{password} eq ""); foreach (keys %data) - {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_})} ; + {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "flags" and $_ ne "borrowernumber" and $hashborrowerfields{$_})} ; $query = "UPDATE borrowers SET ".join (",",@parameters)." WHERE borrowernumber=$data{'borrowernumber'}"; # warn "$query"; @@ -754,7 +754,6 @@ sub AddMember { . ",debarred=" . $dbh->quote( $data{'debarred'} ) . ",ethnicity=" - . $dbh->quote( $data{'ethnicity'} ) . ",ethnotes=" . $dbh->quote( $data{'ethnotes'} ); -- 2.39.5