[open-ils-commits] r7824 - trunk/Open-ILS/xul/staff_client/server/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 24 16:22:12 EDT 2007


Author: phasefx
Date: 2007-09-24 16:12:38 -0400 (Mon, 24 Sep 2007)
New Revision: 7824

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
copy/paste-o.  This lets shelving location be settable for pre-cats

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2007-09-24 19:12:53 UTC (rev 7823)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2007-09-24 20:12:38 UTC (rev 7824)
@@ -630,7 +630,7 @@
 
 		if (ancestor) {
 			var acpl_list = get(ancestor, ancestors);
-            for (var i = 0; i < acpl_list.length; i++) {
+            if (acpl_list) for (var i = 0; i < acpl_list.length; i++) {
                 if (acpl_list[i] != null) {
                     temp_acpl_list.push(acpl_list[i]);
                 }
@@ -661,7 +661,7 @@
                     if ( flat_acpl_list.indexOf( String( consider_acpl ) ) > -1 ) { 
                         /* already in list */ 
                     } else { 
-                        if (acpl_list[i] != null) temp_acpl_list.push( circ_acpl_list[i] ); 
+                        if (circ_acpl_list[i] != null) temp_acpl_list.push( circ_acpl_list[i] ); 
                     }
                 }
             }



More information about the open-ils-commits mailing list