[OPEN-ILS-DEV] Fix for problems with org trees
Dan Scott
denials at gmail.com
Tue Jul 14 11:32:21 EDT 2009
2009/7/14 James Fournie <jfournie at sitka.bclibraries.ca>:
> Hello,
>
> 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
Ah, that would probably explain why hasCommonAncestor() was failing
for us earlier on, when we had a deeper hierarchy than we currently
have.
Good detective work! Your suggested change seems quite rational to me.
--
Dan Scott
Laurentian University
More information about the Open-ils-dev
mailing list