fixed calls to new_editor, which will not work in apputils (circular ref)
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Feb 2008 15:05:34 +0000 (15:05 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Feb 2008 15:05:34 +0000 (15:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8630 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index 88d638a..7f5716d 100644 (file)
@@ -1383,7 +1383,7 @@ sub get_org_descendants {
        my($self, $org_id, $depth) = @_;
        $depth ||= 0;
 
-       my $org_list = new_editor()->json_query(
+       my $org_list = OpenILS::Utils::CStoreEditor->new->json_query(
                select => {
                        aou => [{
                                transform => 'actor.org_unit_descendants',
@@ -1404,7 +1404,7 @@ sub get_org_ancestors {
        my($self, $org_id, $depth) = @_;
        $depth ||= 0;
 
-       my $org_list = new_editor()->json_query(
+       my $org_list = OpenILS::Utils::CStoreEditor->new->json_query(
                select => {
                        aou => [{
                                transform => 'actor.org_unit_ancestors',
@@ -1426,7 +1426,7 @@ sub get_org_full_path {
        my($self, $org_id, $depth) = @_;
        $depth ||= 0;
 
-       my $org_list = new_editor()->json_query(
+       my $org_list = OpenILS::Utils::CStoreEditor->new->json_query(
                select => {
                        aou => [{
                                transform => 'actor.org_unit_full_path',