From e00df8575f97b0781bea8c523e151b430e418671 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 23 Sep 2008 19:31:34 -0400 Subject: [PATCH] rename: Hide type field from rename form when renaming attachments. --- IkiWiki/Plugin/rename.pm | 5 ++--- debian/changelog | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm index 622671516..4ee377b86 100644 --- a/IkiWiki/Plugin/rename.pm +++ b/IkiWiki/Plugin/rename.pm @@ -165,11 +165,10 @@ sub rename_start ($$$$) { #{{{ $session->param(postrename => scalar $q->Vars); IkiWiki::cgi_savesession($session); - my ($f, $buttons)=rename_form($q, $session, $page); if (defined $attachment) { - $f->field(name => "attachment", value => $attachment, force => 1); + $q->param(-name => "attachment", -value => $attachment); } - + my ($f, $buttons)=rename_form($q, $session, $page); IkiWiki::showform($f, $buttons, $session, $q); exit 0; } #}}} diff --git a/debian/changelog b/debian/changelog index bdc04a0ff..1e03e41d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,6 +22,7 @@ ikiwiki (2.65) UNRELEASED; urgency=low should be treated as an attachment. * rename: Add support for moving SubPages of a page when renaming it. (Sponsored by The TOVA Company.) + * rename: Hide type field from rename form when renaming attachments. -- Joey Hess Wed, 17 Sep 2008 14:26:56 -0400 -- 2.32.0.93.g670b81a890