[open-ils-commits] r14506 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Oct 20 12:29:30 EDT 2009


Author: phasefx
Date: 2009-10-20 12:29:27 -0400 (Tue, 20 Oct 2009)
New Revision: 14506

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
Log:
fall through instead of return to handle pre-cats in bib summary

Modified: trunk/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js	2009-10-20 16:17:19 UTC (rev 14505)
+++ trunk/Open-ILS/xul/staff_client/server/cat/bib_brief_overlay.js	2009-10-20 16:29:27 UTC (rev 14506)
@@ -25,8 +25,7 @@
             if (typeof robj.ilsevent != 'undefined') throw(robj); 
             params.mvr = robj;
         }
-        if (! params.mvr) { alert('early mvr return!'); return; }
-        if (! params.mvr_id) params.mvr_id = params.mvr.doc_id();
+        if (params.mvr && !params.mvr_id) params.mvr_id = params.mvr.doc_id();
 
         // Ditto with the bre
         if ( (params.bre_id || params.mvr_id) && ! params.bre) {
@@ -34,7 +33,6 @@
             if (typeof robj.ilsevent != 'undefined') throw(robj); 
             params.bre = robj[0];
         }
-        if (! params.bre) { alert('early bre return!'); return; }
 
         JSAN.use('util.widgets');
         function set(name,value) { 



More information about the open-ils-commits mailing list