rename: Hide type field from rename form when renaming attachments.
parent
e33bbb24e8
commit
e00df8575f
|
@ -165,11 +165,10 @@ sub rename_start ($$$$) { #{{{
|
||||||
$session->param(postrename => scalar $q->Vars);
|
$session->param(postrename => scalar $q->Vars);
|
||||||
IkiWiki::cgi_savesession($session);
|
IkiWiki::cgi_savesession($session);
|
||||||
|
|
||||||
my ($f, $buttons)=rename_form($q, $session, $page);
|
|
||||||
if (defined $attachment) {
|
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);
|
IkiWiki::showform($f, $buttons, $session, $q);
|
||||||
exit 0;
|
exit 0;
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
|
@ -22,6 +22,7 @@ ikiwiki (2.65) UNRELEASED; urgency=low
|
||||||
should be treated as an attachment.
|
should be treated as an attachment.
|
||||||
* rename: Add support for moving SubPages of a page when renaming it.
|
* rename: Add support for moving SubPages of a page when renaming it.
|
||||||
(Sponsored by The TOVA Company.)
|
(Sponsored by The TOVA Company.)
|
||||||
|
* rename: Hide type field from rename form when renaming attachments.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Wed, 17 Sep 2008 14:26:56 -0400
|
-- Joey Hess <joeyh@debian.org> Wed, 17 Sep 2008 14:26:56 -0400
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue