attachment: Bugfix to move upload attachments out of holding area when saving.

master
Joey Hess 2011-07-11 18:34:17 -04:00
parent 45a058a2c7
commit 258b75c4f7
2 changed files with 6 additions and 3 deletions

View File

@ -116,9 +116,10 @@ sub formbuilder_setup (@) {
$form->tmpl_param("attachments-class" => "toggleable-open");
}
# Save attachments in holding area before previewing so
# they can be seen in the preview.
if ($form->submitted eq "Preview") {
# Save attachments in holding area before previewing and
# saving.
if ($form->submitted eq "Preview" ||
$form->submitted eq "Save Page") {
attachments_save($form, $params{session});
}
}

2
debian/changelog vendored
View File

@ -1,6 +1,8 @@
ikiwiki (3.20110708) UNRELEASED; urgency=low
* Add build dep on python-support. Closes: #633536
* attachment: Bugfix to move upload attachments out of holding area
when saving.
-- Joey Hess <joeyh@debian.org> Mon, 11 Jul 2011 13:03:04 -0400