[open-ils-commits] r18769 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 17 11:58:26 EST 2010
Author: miker
Date: 2010-11-17 11:58:23 -0500 (Wed, 17 Nov 2010)
New Revision: 18769
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm
Log:
0 (zero) is a valid depth, so allow it via defined()
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm 2010-11-17 16:57:55 UTC (rev 18768)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm 2010-11-17 16:58:23 UTC (rev 18769)
@@ -3113,7 +3113,7 @@
$query = "estimation_strategy($args{estimation_strategy}) $query" if ($args{estimation_strategy});
$query = "site($args{org_unit}) $query" if ($args{org_unit});
- $query = "depth($args{depth}) $query" if ($args{depth});
+ $query = "depth($args{depth}) $query" if (defined($args{depth}));
$query = "sort($args{sort}) $query" if ($args{sort});
$query = "limit($args{limit}) $query" if ($args{limit});
$query = "core_limit($args{core_limit}) $query" if ($args{core_limit});
More information about the open-ils-commits
mailing list