remove WebGUI::Utility::isIn

This commit is contained in:
Graham Knop 2010-09-07 12:33:15 -05:00
parent 0e754a51e4
commit 6aa26c2e44
61 changed files with 126 additions and 148 deletions

View file

@ -375,7 +375,7 @@ sub getMessagesPaginator {
my $whereClause = $properties->{whereClause} || '';
#Make sure a valid sortBy is passed in
if($sortBy && !WebGUI::Utility::isIn($sortBy,qw( subject sentBy dateStamp status ))) {
if($sortBy && !$sortBy ~~ [qw( subject sentBy dateStamp status )]) {
$sortBy = q{dateStamp}
}
#Sort by fullname if user wants to sort by who sent the message