Koha/koha-tmpl/intranet-tmpl/prog/en/js
Marcel de Rooy 5132d5f991 Bug 14327: Fix js error "TypeError: events is null" in additem.js
If you have no item plugins, the events variable in BindPluginEvents
of additem.js will be null. So testing events.length will generate
the described error.
This patch adds a check to prevent that from happening again.

Test plan:
[1] Do not yet apply this patch !
[2] Temporarily remove framework plugins from your items (in ACQ or default
    framework). Probably you have to clear dateaccessioned.pl and
    barcode.pl.
[3] Open js console in your browser.
[4] Go to Acquisition. Open a basket and add an order from a new empty
    record.
[5] You should see js error: "TypeError: events is null" (additem.js:176)
[6] Apply this patch and reload the page (make sure that you refresh so
    that the new javascript code is read).
[7] The TypeError should be gone.
[8] Restore the framework plugins from step 2. Refresh the page again and
    verify that they still work as expected.

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-06-07 18:40:12 -03:00
..
pages Bug 12320: Remove deprecated construct to delete cookie showColumns 2015-06-04 10:07:26 -03:00
acq.js Bug 12839: aqbooksellers.gstreg is never used 2014-12-03 11:34:48 -03:00
additem.js Bug 14327: Fix js error "TypeError: events is null" in additem.js 2015-06-07 18:40:12 -03:00
ajax.js
background-job-progressbar.js
basket.js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
basketgroup.js
cataloging.js Bug 10299: authority plugin - authority field are reversed 2015-05-19 11:46:24 -03:00
checkouts.js Bug 13982: Checkouts table not sorting on correct column 2015-05-06 13:48:02 -03:00
datatables.js Bug 13419: Add filters on the list table 2015-04-22 14:59:05 -03:00
holds.js Bug 9528: Add delivery branch to the place hold display 2015-04-30 16:45:26 -03:00
localcovers.js Bug 11982 - Images now display properly in the details section. 2015-03-30 13:45:38 -03:00
members.js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
merge-record.js Bug 10648 - In records merge greatest field can not be added 2014-08-05 20:17:17 -03:00
offlinecirc.js
prevent_submit.js
staff-global.js Bug 12320: Remove deprecated construct to delete cookie holdfor 2015-06-04 10:07:26 -03:00
xmlControlfield.js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00