Bugzilla – Attachment 3560 Details for
Bug 6017
Editing an extended attribute can cause a 500 error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-6017-MT3157-editing-an-attribute-lead-to-Error50.patch (text/plain), 975 bytes, created by
Chris Cormack
on 2011-03-31 02:03:56 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-31 02:03:56 UTC
Size:
975 bytes
patch
obsolete
>From 5bd63be4c9ee9782442d8db0c232d8fe8efec967 Mon Sep 17 00:00:00 2001 >From: Henri-Damien LAURENT <henridamien.laurent@biblibre.com> >Date: Wed, 7 Apr 2010 18:00:57 +0200 >Subject: [PATCH] Bug 6017 : MT3157 : editing an attribute lead to Error500 > >Editing an extended attribute in the extended attribute tab would lead to an Error500 >This patch adds some checks for values before UPDATE in SQLHelper.pm >And Adds some checks also befaore calling ModMember in members/memberentry >--- > C4/SQLHelper.pm | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm >index 060b78f..a15beb8 100644 >--- a/C4/SQLHelper.pm >+++ b/C4/SQLHelper.pm >@@ -164,6 +164,7 @@ sub UpdateInTable{ > my @ids=@$data{@field_ids}; > my $dbh = C4::Context->dbh; > my ($keys,$values)=_filter_hash($tablename,$data,0); >+ return unless ($keys); > my $query = > qq{ UPDATE $tablename > SET }.join(",",@$keys).qq{ >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6017
: 3560