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

Change #5087

Category None
Changed by Jason Stephenson <jasonohnoyoudont@sigio.com>
Changed at Sat 17 Feb 2018 11:41:23
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision ad87d0b11ac1530a7d7c07e4a089b8cf25851dba

Comments

Lp 1749593: Fix TypeError: Cannot set property 'grid' of undefined
Commit b35f0c0 added a reference to the grid in the grid.dataProvider
in services/grid.js in the web staff client.  This is great, but the
dataProvider could be undefined where it was being set.  This leads to
busted grid views and a TypeError in the console.

This commit moves the code down until after a fallback dataProvider is
used when the dataProvider is undefined and thereby avoids both
problems of adding the grid to an undefined dataProvider.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>

Changed files