LP#1282286 Tab is NULL error user/ldw/LP1282296_Tab_Is_Null_Error
authorLiam Whalen <whalen.ld@gmail.com>
Sat, 14 Feb 2015 08:25:05 +0000 (00:25 -0800)
committerLiam Whalen <liam.whalen@bc.libraries.coop>
Wed, 18 Feb 2015 05:48:42 +0000 (21:48 -0800)
commit1f63750609a44cc3d577726ad2682b0eb2154c1c
tree4ea6bb327258ebc801ef94b4c904dd293f3ebd1e
parent91a0e5cd65487ab5a7828377e0e94d2e173da884
LP#1282286 Tab is NULL error

When editing a MARC record in Vandelay or MFHD holdings in a popup XUL
WIndow, a tab is NULL error is presented to the user.

This happens because an undefined variable is being used when it should
not be.  This code adds a check for that variable to ensure it exists
before using it.  The variable used only matters in cases where tabs are
present, which is not the case with pop up MARC edit windows, so
ignoring the variable in these cases is fine.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/xul/staff_client/server/cat/marcedit.js