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>
(cherry picked from commit 1914ae2fd2)
master
intrigeri 2009-08-28 12:38:07 +02:00 committed by Joey Hess
parent 8064acf87f
commit 18ddf727d1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}