]> sipb.mit.edu Git - ikiwiki.git/commitdiff
rename: Hide type field from rename form when renaming attachments.
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 23 Sep 2008 23:31:34 +0000 (19:31 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 23 Sep 2008 23:31:34 +0000 (19:31 -0400)
IkiWiki/Plugin/rename.pm
debian/changelog

index 62267151629d195e26255a9637286aaa6f9fd583..4ee377b86c5b5f500eb6acd1323fa174cf4ba709 100644 (file)
@@ -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;
 } #}}}
index bdc04a0ffa0361f6eaadbee4033583e16eda2ef4..1e03e41d3d75ade770e5471ed1edc1d2a00e954b 100644 (file)
@@ -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 <joeyh@debian.org>  Wed, 17 Sep 2008 14:26:56 -0400