remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -151,7 +151,7 @@ sub getCategories {
|
|||
my $bindvars = [];
|
||||
|
||||
foreach my $key (keys %{$options}) {
|
||||
next unless WebGUI::Utility::isIn($key,qw(editable visible));
|
||||
next unless $key ~~ [qw(editable visible)];
|
||||
$whereClause .= " and" unless ($whereClause eq "");
|
||||
$whereClause .= " $key=?";
|
||||
push(@{$bindvars},$options->{$key});
|
||||
|
|
@ -214,7 +214,7 @@ sub getFields {
|
|||
|
||||
foreach my $key (keys %{$options}) {
|
||||
#Skip bad stuff that will crash the query
|
||||
next unless WebGUI::Utility::isIn($key,qw(editable visible required));
|
||||
next unless $key ~~ [qw(editable visible required)];
|
||||
$whereClause .= " and $key=?";
|
||||
push(@{$bindvars},$options->{$key});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue