lp1010187 eliminate redundant/unnecessary calls collab/phasefx/item_editor_stat_cats
authorJason Etheridge <jason@esilibrary.com>
Wed, 20 Jun 2012 15:47:54 +0000 (11:47 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 20 Jun 2012 15:47:54 +0000 (11:47 -0400)
commit5435e5bfd6a2c3a67aaf8d3399d16805c3782efe
tree7f7daf8344ca610d58232a28783d07f35ef893e1
parentc2e7e5aa53fe0e4579be4dfbb87fae1e1dcc3ca4
lp1010187 eliminate redundant/unnecessary calls

Particularly invocations of open-ils.circ.stat_cat.asset.retrieve.all in the
Item Attribute Editor

To test:

    login with a BR1 workstation
    load a pristine (non-stat-cat-laden) BR1 item with the editor
    there should be no call to open-ils.circ.stat_cat.asset.retrieve.all
    change the Circ Lib on the item to BR4
    reload the item in the editor
    there should be a call to open-ils.circ.stat_cat.asset.retrieve.all
    reload the item in the editor
    there should be no call to open-ils.circ.stat_cat.asset.retrieve.all
    assign the item a stat cat entry owned by CONS
    reload the item in the editor
    there should be no call to open-ils.circ.stat_cat.asset.retrieve.all

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/cat/copy_editor.js