[open-ils-commits] r13584 - in trunk/Open-ILS/src/perlmods/OpenILS/Application: . Circ (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 14 12:36:55 EDT 2009


Author: erickson
Date: 2009-07-14 12:36:52 -0400 (Tue, 14 Jul 2009)
New Revision: 13584

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm
Log:
Patch from James Fournie -- fixing org tree fleshing depth.

====
I was having a horrible time getting the hasCommonAncestor() function
to work in the circ Javascripts.  I eventually discovered that
ScriptBuilder.pm was making a cstore actor.org_unit search with flesh
= 2, which limited the search to org units above depth 2.  My org
units were depth 3.  I changed the cstore flesh to -1 and this seems
to retreive all org units.  I also found an similar problem in
AppUtils.pm



Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm	2009-07-14 13:30:41 UTC (rev 13583)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm	2009-07-14 16:36:52 UTC (rev 13584)
@@ -1068,7 +1068,7 @@
 		[
 			{"parent_ou" => undef },
 			{
-				flesh				=> 2,
+				flesh				=> -1,
 				flesh_fields	=> { aou =>  ['children'] },
 				order_by       => { aou => 'name'}
 			}

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm	2009-07-14 13:30:41 UTC (rev 13583)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm	2009-07-14 16:36:52 UTC (rev 13584)
@@ -279,7 +279,7 @@
 			[
 				{"parent_ou" => undef },
 				{
-					flesh				=> 2,
+					flesh				=> -1,
 					flesh_fields	=> { aou =>  ['children'] },
 					order_by			=> { aou => 'name'}
 				}



More information about the open-ils-commits mailing list