]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
don't special case preview
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 2 Oct 2008 16:42:46 +0000 (12:42 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 2 Oct 2008 16:42:46 +0000 (12:42 -0400)
commite0fd02acf1d40d8f049a7f470e07eebad28cab3d
tree9d9a7be8f14ea287f46301bb6726bb025211ebbc
parent45a2074071882b3bcb13b8983a4e5b6be0eda750
don't special case preview

Whenever the edit form is submitted, but not saved, the page location
select should reduce to the currently selected value. This was only done
when previewing before, but is also needed in order to support the case of
adding an attachment to a page that is just being created.

Before this change, the attachment plugin would get a weird value in
$form->field("page"), that did not reflect the actual page location.
IkiWiki/Plugin/editpage.pm