LP#820409 fix org unit admin UI collab/phasefx/org_unit_admin_fixes
authorJason Etheridge <jason@esilibrary.com>
Mon, 15 Aug 2011 19:34:07 +0000 (15:34 -0400)
committerJason Etheridge <jason@esilibrary.com>
Mon, 15 Aug 2011 19:34:07 +0000 (15:34 -0400)
commitfe9fe83c6fb95a98b3a4e15bb79f0adf115e779d
tree65a7affdd58bdc3b9e3b2655a5354c999721f153
parentff7c382023385d80dc476f9e94d50bbf88763b2a
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>
Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js