Avoid a PostgreSQL 8.3 type conversion problem.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Apr 2009 05:49:21 +0000 (05:49 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Apr 2009 05:49:21 +0000 (05:49 +0000)
Thanks to Jeff Godin for the suggested fix on IRC.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@12770 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/cgi-bin/lib-setup.cgi

index 502d26a..f93455c 100755 (executable)
@@ -200,7 +200,7 @@ for my $lib ( actor::org_unit->search( {parent_ou=>undef} ) ) {
        last;
 }
 
-for my $lib ( actor::org_unit->search_like( {parent_ou => '%'}, {order_by => 'name'} ) ) {
+for my $lib ( actor::org_unit->search_where ( {parent_ou => { '>' => -1 } }, {order_by => 'name'} ) ) {
        my $name = $lib->name;
        $name =~ s/'/\\'/og;
        my $parent = $lib->parent_ou;