From a6c9d3c3d17bb893dfa2c321b896afe3976ed5be Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 23 Feb 2009 09:11:34 -0800 Subject: [PATCH] Peel off SQL so that others things can be selected. --- lib/WebGUI/Inbox.pm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Inbox.pm b/lib/WebGUI/Inbox.pm index 42afe686a..be0841821 100644 --- a/lib/WebGUI/Inbox.pm +++ b/lib/WebGUI/Inbox.pm @@ -439,6 +439,7 @@ sub getMessageSql { my $sortDir = $props->{sortDir}; my $whereClause = $props->{whereClause}; my $limit = $props->{limit}; + my $select = $props->{'select'}; if($sortBy) { $sortBy = qq{ORDER BY $sortBy $sortDir}; @@ -452,6 +453,14 @@ sub getMessageSql { $limit = qq{LIMIT $limit}; } + if(!$select) { + $select =<