From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Fri, 24 Sep 2010 05:48:39 +0000 (+0000)
Subject: this call returns an array; fixes surprise stat cats in patron display
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=084c27568deac3cdde22202b9c76ef6c1722c067;p=evergreen%2Fmasslnc.git

this call returns an array; fixes surprise stat cats in patron display


git-svn-id: svn://svn.open-ils.org/ILS/trunk@17952 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
index 0c51156ff7..20af40b1d2 100644
--- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
+++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
@@ -186,6 +186,8 @@ OpenILS.data.prototype = {
                 break;
                 case 'actsc':
                     found = obj.network.simple_request('FM_ACTSC_RETRIEVE_VIA_PCRUD',[ ses(), { 'id' : { '=' : value } }]);
+                    if (typeof found.ilsevent != 'undefined') throw(found);
+                    found = found[0];
                 break;
                 default: return undefined; break;
             }