]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1788680 prevent copy template apply failure on null stat cats
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 8 Jun 2018 19:09:54 +0000 (12:09 -0700)
committerDan Wells <dbw2@calvin.edu>
Tue, 14 May 2019 17:24:27 +0000 (13:24 -0400)
commit31bf87b3c9a0ef57ead452d42a7f84a23c315f74
treef9e33e75d4f79f5aa30b6089d856eaabac5c15ba
parent23e4c9d8aac12899d00e0b4e5a9c08e55d6cf83c
LP#1788680 prevent copy template apply failure on null stat cats

Under some circumstances, the current code can result in a JS failure:

Cannot read property 'filter' of undefined

When this happens, the copy template may apply partially or not at all.
This change simply makes sure cp.stat_cat_entries() exists before
attempting to filter it.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js