]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/edittemplate.pm
signinedit: Auto-disable the plugin when all authentication methods are disabled.
[git.ikiwiki.info.git] / IkiWiki / Plugin / edittemplate.pm
index e8e7b1e04b286739fb55ba40f81ddc8c913ac304..a163b0d84c3b28cee03ab3eecd24744ee5a2fc65 100644 (file)
@@ -83,10 +83,13 @@ sub formbuilder (@) {
        foreach my $field ($form->field) {
                if ($field eq 'page') {
                        @page_locs=$field->def_value;
-                       push @page_locs, $field->options;
+
+                       # FormBuilder is on the bad crack. See #551499
+                       my @options=map { ref $_ ? @$_ : $_ } $field->options;
+
+                       push @page_locs, @options;
                }
        }
-
        foreach my $p (@page_locs) {
                foreach my $registering_page (keys %pagestate) {
                        if (exists $pagestate{$registering_page}{edittemplate}) {