alerting ilsevents
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Feb 2006 04:07:44 +0000 (04:07 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Feb 2006 04:07:44 +0000 (04:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3086 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/user_edit.js

index 263c81c..b9e9a7e 100644 (file)
@@ -148,6 +148,8 @@ function save_user () {
                req.send(true);
                var ok = req.getResultObject();
 
+               if (ok.ilsevent) throw ok;
+                       
                req = new RemoteRequest( 'open-ils.actor', 'open-ils.actor.user.set_groups', ses_id, ok.id(), user_groups );
                req.send(true);
                req.getResultObject();