remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -1046,7 +1046,7 @@ sub getEditForm {
|
|||
};
|
||||
|
||||
# Kludge...
|
||||
if ( isIn( $fieldHash->{fieldType}, 'selectBox', 'workflow' ) and ref $fieldHash->{value} ne 'ARRAY' ) {
|
||||
if ( $fieldHash->{fieldType} ~~ ['selectBox', 'workflow'] ) and ref $fieldHash->{value} ne 'ARRAY' ) {
|
||||
$fieldHash->{value} = [ $fieldHash->{value} ];
|
||||
}
|
||||
|
||||
|
|
@ -2589,7 +2589,7 @@ sub www_add {
|
|||
my $prototype = WebGUI::Asset->newById($self->session, $self->session->form->process("prototype"));
|
||||
foreach my $property ($prototype->getProperties) { # cycle through rather than copying properties to avoid grabbing stuff we shouldn't grab
|
||||
my $definition = $prototype->getProperty($property);
|
||||
next if (isIn($property,qw(title menuTitle url isPrototype isPackage)));
|
||||
next if ( $property ~~ [qw(title menuTitle url isPrototype isPackage)]);
|
||||
next if ($definition->{noFormPost});
|
||||
$prototypeProperties{$property} = $prototype->get($property);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue