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
intrigeri 2009-08-28 12:38:07 +02:00
parent 588b8951d3
commit 1914ae2fd2
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ sub formbuilder (@) {
next unless "$field" eq "type"; next unless "$field" eq "type";
if ($field->type eq 'select') { if ($field->type eq 'select') {
# remove po from the list of types # 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;
} }
} }