]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1773417 Fix Transfer to Lib in Item Status user/dbwells/holdings-view-omnibus-signoff-rebase-patch
authorDan Wells <dbw2@calvin.edu>
Wed, 13 Jun 2018 13:48:28 +0000 (09:48 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 13 Jun 2018 14:26:02 +0000 (10:26 -0400)
commit1b2e1db3dc05f6c34800777d1ebe8920eae92a3d
tree6c1e1c1501271cdfd56c19e41053b3d346058747
parent29319749c7101fe74278bf8393e6dc0ec982e74e
LP#1773417 Fix Transfer to Lib in Item Status

This function had two errors, one serious enough to prevent it from
working, and a second which was a minor inconvenience.

For the first, we were trying to move copies based on a reference
to the call number ID.  We did not, however, include the cn.id in the
faux cn we build for the loop.  We are using it as the key for that
hash anyway, so we'll just pass through the key as well in the forEach.

For the second, we were not properly chaining the item refresh to the
update promise, so it was not refreshing.  We now instead refresh based
on the completion of $q.all().

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/circ/services/item.js