Koha/koha-tmpl/intranet-tmpl/prog/js
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
..
pages Bug 14576: Allow arbitrary automatic update of location on checkin 2019-04-25 11:36:23 +00:00
acq.js
acquisitions-menu.js
additem.js Bug 16939: Making all 'add to basket' actions buttons 2019-01-02 20:27:28 +00:00
addorderiso2709.js Bug 22734: Fund not marked as mandatory when ordering from a staged file 2019-04-25 11:36:23 +00:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js Bug 19417: Make error just a wee more human 2019-03-13 05:31:34 +00:00
basket.js Bug 22023: (QA follow-up) Remove console.log used for debugging 2019-03-13 05:31:30 +00:00
basketgroup.js
biblio_framework.js
cart.js Bug 22419: Records listed twice when select/unselect all from the cart 2019-03-07 20:53:28 +00:00
catalog.js Bug 21556: Deleting same record twice leads to fatal software error 2018-11-01 19:05:12 +00:00
cataloging.js
cataloging_additem.js Bug 22669: Fix item editing on receiving an order 2019-04-26 10:17:21 +00:00
categories.js Bug 22190: Add column configuration to patron category administration 2019-01-30 12:01:34 +00:00
charts.js
checkouts.js Bug 17353: Add phone number column to checkout search 2019-01-28 13:06:35 +00:00
circ-patron-search-results.js Bug 22330: (QA follow-up) Enable datatable in patron search 2019-03-21 16:22:56 +00:00
commons.js
datatables.js
file-upload.js
funds_sorts.js Bug 15184: Prepare the ground - Move funds and sort fields autoupdate 2018-11-08 15:52:56 +00:00
holds.js Bug 19630: Removed constant message from Status column 2019-04-11 13:52:09 +00:00
ill-list-table.js Bug 18589: (follow-up) Fix merge problem 2019-03-22 20:21:50 +00:00
item_search_fields.js
letter.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
localcovers.js
mana.js Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
marc_modification_templates.js Bug 21861: (follow-up) replace onchange() with jQuery equivalent 2018-11-29 18:32:49 +00:00
marc_subfields_structure.js
members-menu.js Bug 20809: Link patron image to patron image add/edit form 2019-02-04 15:54:34 +00:00
members.js Bug 3766: Cities/Towns only on one address 2019-04-17 12:25:25 +00:00
merge-record.js
messaging-preference-form.js Bug 21813: In-page JavaScript causes error on patron entry page 2019-01-08 14:09:14 +00:00
offlinecirc.js
onboarding.js
rotating-collections.js
serials-toolbar.js Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 15911: (follow-up) Allow enter to submit using the submit button 2019-03-13 03:42:10 +00:00
subscription-add.js Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
table_filters.js
tools-menu.js
xmlControlfield.js
z3950_search.js