<br><br><div class="gmail_quote">On Tue, Jul 14, 2009 at 11:32 AM, Dan Scott <span dir="ltr"><<a href="mailto:denials@gmail.com">denials@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/7/14 James Fournie <<a href="mailto:jfournie@sitka.bclibraries.ca">jfournie@sitka.bclibraries.ca</a>>:<br>
<div><div></div><div class="h5">> Hello,<br>
><br>
> I was having a horrible time getting the hasCommonAncestor() function<br>
> to work in the circ Javascripts. I eventually discovered that<br>
> ScriptBuilder.pm was making a cstore actor.org_unit search with flesh<br>
> = 2, which limited the search to org units above depth 2. My org<br>
> units were depth 3. I changed the cstore flesh to -1 and this seems<br>
> to retreive all org units. I also found an similar problem in<br>
> AppUtils.pm<br>
<br>
</div></div>Ah, that would probably explain why hasCommonAncestor() was failing<br>
for us earlier on, when we had a deeper hierarchy than we currently<br>
have.<br>
<br>
Good detective work! Your suggested change seems quite rational to me.<br>
<font color="#888888"></font></blockquote><div><br>Good catch. Applied with thanks!<br><br>-b</div></div><br clear="all"><br>-- <br>Bill Erickson<br>| VP, Software Development & Integration<br>| Equinox Software, Inc. / The Evergreen Experts<br>
| phone: 877-OPEN-ILS (673-6457)<br>| email: <a href="mailto:erickson@esilibrary.com">erickson@esilibrary.com</a><br>| web: <a href="http://esilibrary.com">http://esilibrary.com</a><br>