remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -398,7 +398,7 @@ sub getEventFieldsForImport {
|
|||
foreach my $definition (@{WebGUI::Asset::Sku::EMSTicket->definition($self->session)}) {
|
||||
$count++;
|
||||
foreach my $field (keys %{$definition->{properties}}) {
|
||||
next if ($count > 1 && !isIn($field, qw(title description)));
|
||||
next if ($count > 1 && ! $field ~~ [qw(title description)]);
|
||||
next unless ($definition->{properties}{$field}{label} ne "");
|
||||
push(@fields, {
|
||||
name => $field,
|
||||
|
|
@ -1855,7 +1855,7 @@ className='WebGUI::Asset::Sku::EMSTicket' and state='published' and revisionDate
|
|||
foreach my $id (@ids) {
|
||||
|
||||
# skip tickets we already have
|
||||
if (isIn($id, @existingTickets)) {
|
||||
if ($id ~~ @existingTickets) {
|
||||
$totalTickets--;
|
||||
next;
|
||||
}
|
||||
|
|
@ -2125,7 +2125,7 @@ $|=1;
|
|||
my $metadata = $event->getEventMetaData;
|
||||
my $i = 0;
|
||||
foreach my $field (@{$fields}) {
|
||||
next unless isIn($field->{name}, @import);
|
||||
next unless $field->{name} ~~ @import;
|
||||
$out->print("\tAdding field ".$field->{label}."\n",1);
|
||||
my $type = $field->{type};
|
||||
##Force the use of Form::DateTime and MySQL Format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue