]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1282286 Tab is NULL error
authorLiam Whalen <whalen.ld@gmail.com>
Sat, 14 Feb 2015 08:25:05 +0000 (00:25 -0800)
committerDan Wells <dbw2@calvin.edu>
Tue, 24 Feb 2015 15:21:20 +0000 (10:21 -0500)
commitde9179216d01b2b3a7855846da2cfa00671863d6
treec04da906b545131e632daac59ea80bf9bc4ec9f0
parentc304ebb52b8249278b54d32efcfee86d779be48d
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>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/xul/staff_client/server/cat/marcedit.js