po: fix interdiction to create pages of type po
... which was broken by the new page_types code. Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
588b8951d3
commit
1914ae2fd2
|
@ -533,7 +533,7 @@ sub formbuilder (@) {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue