From 08f25b7d1bd93d1b9eed3bf98c498f6a9ed4f888 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 14 Jul 2009 16:36:52 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@13584 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm | 2 +- Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index c69d2e1f4d..b83b1776c4 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -1068,7 +1068,7 @@ sub fetch_org_tree { [ {"parent_ou" => undef }, { - flesh => 2, + flesh => -1, flesh_fields => { aou => ['children'] }, order_by => { aou => 'name'} } diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm index 8c31b9135a..0b9ebbc3e1 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm @@ -279,7 +279,7 @@ sub insert_org_methods { [ {"parent_ou" => undef }, { - flesh => 2, + flesh => -1, flesh_fields => { aou => ['children'] }, order_by => { aou => 'name'} } -- 2.11.0