... which was broken by the new page_types code.
Signed-off-by: intrigeri <intrigeri@boum.org>
next unless "$field" eq "type";
if ($field->type eq 'select') {
# remove po from the list of types
next unless "$field" eq "type";
if ($field->type eq 'select') {
# remove po from the list of types
- my @types = grep { $_ ne 'po' } $field->options;
+ my @types = grep { $_->[0] ne 'po' } $field->options;
$field->options(\@types) if @types;
}
}
$field->options(\@types) if @types;
}
}