diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 2c1b17da0..1af3c3a32 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -5,6 +5,7 @@ - fix: Captcha unreadable when using Image::Magick - fix: WebGUI::Group->new doesn't check group validity - add form element template variables for event user defined fields + - fix: File Pile doesn't have save and commit button 7.4.7 - fix: misspelled i18n in webgui password recovery diff --git a/lib/WebGUI/Asset/FilePile.pm b/lib/WebGUI/Asset/FilePile.pm index 753cf1303..4f71c9568 100644 --- a/lib/WebGUI/Asset/FilePile.pm +++ b/lib/WebGUI/Asset/FilePile.pm @@ -49,6 +49,12 @@ These methods are available from this class: sub edit { my $self = shift; my $tabform = WebGUI::TabForm->new($self->session,); + if ($self->session->config->get("enableSaveAndCommit")) { + $tabform->submitAppend(WebGUI::Form::submit($self->session, { + name => "saveAndCommit", + value => WebGUI::International->new($self->session, 'Asset')->get("save and commit"), + })); + } my $i18n = WebGUI::International->new($self->session, 'Asset_FilePile'); $tabform->hidden({ name=>"func",