From 8fba9e326598c1502f5ec372efca7dfeeac912e6 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Tue, 9 Oct 2007 16:46:31 -0500 Subject: [PATCH] Modifying ModMember so that if there were a flag parameter on page it would not write borrower flags Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Members.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index b2f57c98c0..98f973e6d7 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 "borrowernumber" and $_ ne "flags" 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 "borrowernumber" and $_ ne "flags" and $hashborrowerfields{$_})} ; $query = "UPDATE borrowers SET ".join (",",@parameters)." WHERE borrowernumber=$data{'borrowernumber'}"; # warn "$query"; -- 2.39.5