[freeside-commits] branch FREESIDE_3_BRANCH updated. 856fe5e70c55f191f29db24c7ca8ae6f952de736
Mark Wells
mark at 420.am
Thu Jul 18 11:32:17 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 856fe5e70c55f191f29db24c7ca8ae6f952de736 (commit)
from 8633817a4dd2dc892e6ce4367c886501224f07b2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 856fe5e70c55f191f29db24c7ca8ae6f952de736
Author: Mark Wells <mark at freeside.biz>
Date: Thu Jul 18 11:31:58 2013 -0700
sales report: fix report class filtering under Pg 8.x, #24002
diff --git a/FS/FS/Report/Table.pm b/FS/FS/Report/Table.pm
index c5a6503..ffd2ac4 100644
--- a/FS/FS/Report/Table.pm
+++ b/FS/FS/Report/Table.pm
@@ -760,7 +760,9 @@ sub with_report_option {
} elsif ( $num eq '0' ) {
$comparison = "NOT EXISTS ($subselect)";
} else {
- $comparison = "(SELECT COALESCE(string_agg(num, ','), '') FROM (
+ #$comparison = "(SELECT COALESCE(string_agg(num, ','), '') FROM ( #Pg 9-ism
+ $comparison = "(SELECT COALESCE(array_to_string(array_agg(num), ','), '')
+ FROM (
$subselect
) AS x) = '$num'";
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Report/Table.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list