From: phasefx Date: Fri, 24 Sep 2010 05:49:25 +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=7ef2557906a114e917812da551dd56612fe68a81;p=evergreen%2Fjoelewis.git this call returns an array; fixes surprise stat cats in patron display git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@17953 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; }