[Koha-bugs] [Bug 6079] Single parentheses in currency causes order to fail when updating

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 25 15:12:53 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6079

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at biblibre.co
                   |                            |m

--- Comment #2 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Should be fixed with the following patch:

diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index 0bb34c6..320169a 100644
--- a/C4/Acquisition.pm
+++ b/C4/Acquisition.pm
@@ -1269,7 +1269,7 @@ sub ModOrder {
     foreach my $orderinfokey (grep(!/ordernumber/, keys %$orderinfo)){
         # ... and skip hash entries that are not in the aqorders table
         # FIXME : probably not the best way to do it (would be better to have
a correct hash)
-        next unless grep(/^$orderinfokey$/, @$colnames);
+        next unless grep(/^\Q$orderinfokey\E$/, @$colnames);
             $query .= "$orderinfokey=?, ";
             push(@params, $orderinfo->{$orderinfokey});
     }

But not sure of the consequences...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list