<br><br><div class="gmail_quote">On Tue, Jul 14, 2009 at 11:32 AM, Dan Scott <span dir="ltr">&lt;<a href="mailto:denials@gmail.com">denials@gmail.com</a>&gt;</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 &lt;<a href="mailto:jfournie@sitka.bclibraries.ca">jfournie@sitka.bclibraries.ca</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hello,<br>
&gt;<br>
&gt; I was having a horrible time getting the hasCommonAncestor() function<br>
&gt; to work in the circ Javascripts.  I eventually discovered that<br>
&gt; ScriptBuilder.pm was making a cstore actor.org_unit search with flesh<br>
&gt; = 2, which limited the search to org units above depth 2.  My org<br>
&gt; units were depth 3.  I changed the cstore flesh to -1 and this seems<br>
&gt; to retreive all org units.  I also found an similar problem in<br>
&gt; 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 &amp; 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>