LP#820409 fix org unit admin UI
authorJason Etheridge <jason@esilibrary.com>
Mon, 15 Aug 2011 19:34:07 +0000 (15:34 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 16 Aug 2011 13:13:09 +0000 (09:13 -0400)
commitf88489b7e480ef6187b1cc91dfaab6d24ae449fd
tree947f8f449f8dc0a461f9307fab712a1c49e0f54c
parentd868562abdc1b2d44af879956a24208d037037d6
LP#820409 fix org unit admin UI

This reverts part of 17e659eec3e23caf5d301b33aa5019b672ecd0e8, which was
tightening checks against null and '' to avoid implicit type-casting.

This line var modified_ou = new aou().fromStoreItem( current_ou ); was
producing a fieldmapper object where certain fields were being set to
contain the string "undefined" rather than a null.

The update method would take isdeleted == "undefined" as True.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js