method returns id of ausp now
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Jan 2009 20:40:03 +0000 (20:40 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Jan 2009 20:40:03 +0000 (20:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11745 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 33ee046..15a2d5f 100644 (file)
@@ -86,7 +86,7 @@ function penalty_init() {
                             penalty.org_unit( ses('ws_ou') );
                             penalty.note( note );
                             var req = net.simple_request( 'FM_AUSP_APPLY', [ ses(), penalty ] );
-                            if (typeof req.ilsevent != 'undefined' || String(req) != '1') {
+                            if (typeof req.ilsevent != 'undefined') {
                                 error.standard_unexpected_error_alert(patronStrings.getFormattedString('staff.patron.standing_penalty.apply_error',[data.hash.csp[id].name()]),req);
                             }
                         };