[open-ils-commits] [GIT] Evergreen ILS branch rel_2_7 updated. 2defa0d44052a21e2efa5ed42739e1badb4c3ade
Evergreen Git
git at git.evergreen-ils.org
Mon Feb 23 17:09:36 EST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_7 has been updated
via 2defa0d44052a21e2efa5ed42739e1badb4c3ade (commit)
from 2c0d82dac53ef965e0588c678bfe7e788f1b7cd6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2defa0d44052a21e2efa5ed42739e1badb4c3ade
Author: Galen Charlton <gmc at esilibrary.com>
Date: Mon Feb 23 20:25:02 2015 +0000
LP#1154579: explicitly alert if copy location failed to be deleted
This patch adds an alert if the act of deleting a copy
location in the staff interface fails -- which would
most commonly happen if there are still active items
attached to the location to be deleted.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/xul/staff_client/server/admin/copy_locations.js b/Open-ILS/xul/staff_client/server/admin/copy_locations.js
index 6ce174f..da25abc 100644
--- a/Open-ILS/xul/staff_client/server/admin/copy_locations.js
+++ b/Open-ILS/xul/staff_client/server/admin/copy_locations.js
@@ -288,7 +288,10 @@ function clDelete( cl, tbody, row ) {
var req = new Request( DELETE_CL, SESSION, cl.id() );
req.send(true);
var res = req.result();
- if(checkILSEvent(res)) throw res;
+ if (checkILSEvent(res)) {
+ alertILSEvent(res);
+ return;
+ }
alertId('cl_update_success');
clGo();
}
-----------------------------------------------------------------------
Summary of changes:
.../staff_client/server/admin/copy_locations.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list