From 901be3c87dad00518da9761e440e7672e01c50b3 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 3 Jul 2013 15:19:00 +0200 Subject: [PATCH] Bug 10536 - Error when editing an order note when receiving When receiving ordrers "acqui/parcel.pl?invoiceid=1", you can add or modify an order note directly from table. After setting note "acqui/modordernotes.pl", you get an error : Can't use an undefined value as an ARRAY reference at /acqui/parcel.pl line 156. This patch corrects this, there was an error in referrer build into link to acqui/modordernotes.pl. Test plan : - Go to a vendor and click on "Receive shipments" - Click on an invoice - On an order without note, click on "Add note" - Enter a note and click "Save" => You come back to invoice and note is added - On an order with note, click on "Change note" - Enter a note and click "Save" => You come back to invoice and note is added --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 415c7e8..e96033b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -200,9 +200,9 @@ [% END %]
[% IF ( loop_order.notes ) %] -

Note: [% loop_order.notes|html %] [Change note]

+

Note: [% loop_order.notes|html %] [Change note]

[% ELSE %] - [Add note] + [Add note] [% END %] MARC | Card -- 1.7.10.4