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 =<