Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #6183

Category None
Changed by Jeff Davis <jdavisohnoyoudont@sitka.bclibraries.ca>
Changed at Tue 14 May 2019 13:05:41
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 1adb00509209c3ebd223701612b1f2692b17e3bc


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>

Changed files