preventive medicine
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Jun 2006 16:12:29 +0000 (16:12 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Jun 2006 16:12:29 +0000 (16:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4701 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/info_stat_cats.xul

index a6f9e0f..06eb552 100644 (file)
 
                                try {
 
-                               var sc = g.network.simple_request('FM_ACTSC_RETRIEVE_BATCH', [ ses(), [ scem_hash[i].stat_cat() ] ]);
+                               var sc_id = scem_hash[i].stat_cat();
+                               if (sc_id == null || sc_id == '') throw(scem_hash[i]);
+                               var sc = g.network.simple_request('FM_ACTSC_RETRIEVE_BATCH', [ ses(), [ sc_id ] ]);
                                if (!sc || typeof sc.ilsevent != 'undefined') { throw(sc); continue; }
                                sc = sc[0];