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
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
merge.pl
merge_ajax.pl
moveitem.pl
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