[open-ils-commits] r12770 - trunk/Open-ILS/src/cgi-bin (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 3 01:49:24 EDT 2009
Author: dbs
Date: 2009-04-03 01:49:21 -0400 (Fri, 03 Apr 2009)
New Revision: 12770
Modified:
trunk/Open-ILS/src/cgi-bin/lib-setup.cgi
Log:
Avoid a PostgreSQL 8.3 type conversion problem.
Thanks to Jeff Godin for the suggested fix on IRC.
Modified: trunk/Open-ILS/src/cgi-bin/lib-setup.cgi
===================================================================
--- trunk/Open-ILS/src/cgi-bin/lib-setup.cgi 2009-04-02 21:26:02 UTC (rev 12769)
+++ trunk/Open-ILS/src/cgi-bin/lib-setup.cgi 2009-04-03 05:49:21 UTC (rev 12770)
@@ -200,7 +200,7 @@
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;
More information about the open-ils-commits
mailing list