Koha/koha-tmpl/intranet-tmpl/prog/en/modules/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 Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
addbiblio.tt Bug 20128: Add permission for advanced cataloging editor 2019-04-17 12:25:26 +00:00
addbooks.tt Bug 20128: Add permission for advanced cataloging editor 2019-04-17 12:25:26 +00:00
additem.tt Bug 22669: Fix item editing on receiving an order 2019-04-26 10:17:21 +00:00
editor.tt Bug 21307: Switch two-column templates to Bootstrap grid: Cataloging 2019-04-19 14:27:56 +00:00
linkitem.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
merge.tt Bug 21942: Clean up cataloging merge template 2019-04-19 14:22:17 +00:00
moveitem.tt Bug 20044: Switch single-column templates to Bootstrap grid: Cataloging 2018-10-24 13:05:57 +00:00
z3950_auth_search.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
z3950_search.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00