From a7cadab7b33e321ca9d33b38a767e5feba7fc1a8 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Fri, 5 Oct 2007 14:02:44 -0500 Subject: [PATCH] Revert "fix for bug 1468, but not sure if this is the best" This reverts commit ae206e86adf8eb281fd1029364c1e705f2ffa197. --- C4/Members.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index 3dc493a363..b2f57c98c0 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 "flags" and $_ ne "borrowernumber" and $hashborrowerfields{$_}) } ; + {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ 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 "flags" and $_ ne "borrowernumber" and $hashborrowerfields{$_})} ; + {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_})} ; $query = "UPDATE borrowers SET ".join (",",@parameters)." WHERE borrowernumber=$data{'borrowernumber'}"; # warn "$query"; @@ -754,6 +754,7 @@ sub AddMember { . ",debarred=" . $dbh->quote( $data{'debarred'} ) . ",ethnicity=" + . $dbh->quote( $data{'ethnicity'} ) . ",ethnotes=" . $dbh->quote( $data{'ethnotes'} ); -- 2.39.5