[OPEN-ILS-DEV] Fix for problems with org trees

Bill Erickson erickson at esilibrary.com
Tue Jul 14 12:39:25 EDT 2009


On Tue, Jul 14, 2009 at 11:32 AM, Dan Scott <denials at gmail.com> wrote:

> 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.
>

Good catch.  Applied with thanks!

-b


-- 
Bill Erickson
| VP, Software Development & Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: erickson at esilibrary.com
| web: http://esilibrary.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090714/8356a9db/attachment.htm 


More information about the Open-ils-dev mailing list