Koha/cataloguing
Jonathan Druart c9927a97ab Bug 22669: Fix item editing on receiving an order
Since
  commit 1253975389
  Bug 21091: Move add item template JavaScript to a separate file

items cannot longer be edited when receiving an order.
When moving the code to the JS file, the JS variable "opisadd" was
always set to "true":
  var opisadd = '[% opisadd | html %]';
Even if the TT variable is 0, opisadd will be "0", which is evaluated to
true in Javascript

To clean the situation it is easier to remove this variable and use "op"
instead.

Test plan:
- Make sure acqcreateitem is set to "when placing an order"
- Create a basket with some orders
- Close the basket
- Go to your vendor and receive an order
- On the receive page, try to edit your item
=> Without the patch, the pop up page will open and then close, not allowing the item to be edited.
=> With this patch applied you will see the item edit form. Save and
confirm that the parent window is updated with the new value (actually
it's refreshed)

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-26 10:17:21 +00:00
..
value_builder
addbiblio.pl Bug 16232: Fix edit as new in Rancor 2019-04-25 10:02:34 +00:00
addbooks.pl Bug 14385: Extend OpacHiddenItems to allow specifying exempt borrower categories 2018-11-02 10:33:09 +00:00
additem.pl Bug 22669: Fix item editing on receiving an order 2019-04-26 10:17:21 +00:00
editor.pl Bug 20128: Add permission for advanced cataloging editor 2019-04-17 12:25:26 +00:00
linkitem.pl Bug 20829: Handle non-existent barcode when linking to host item 2018-06-08 09:48:11 -04:00
merge.pl
merge_ajax.pl Bug 14588: Simplify merge_ajax.pl 2015-08-21 10:21:39 -03:00
moveitem.pl Bug 19996: (QA follow-up) Remove commented use warnings; 2018-02-05 09:45:47 -03:00
plugin_launcher.pl
ysearch.pl
z3950_auth_search.pl Bug 22532: Remove Z39.50 random 2019-04-18 10:48:10 +00:00
z3950_search.pl Bug 19996: use Modern::Perl in cataloguing perl scripts 2018-02-05 09:45:47 -03:00