diff --git a/CHANGELOG.md b/CHANGELOG.md index bac0375948..3e3c7f2c18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ HumHub Changelog - Fix #7472: Fix missing fields when creating a new user from admin - Fix #7477: Refactor Registration Form Options - Enh #7455: Add Share Intend feature for the Mobile app +- Fix #7482: Fix the post submit button title after back from draft mode 1.17.1 (March 6, 2025) ---------------------- diff --git a/protected/humhub/modules/content/resources/js/humhub.content.form.js b/protected/humhub/modules/content/resources/js/humhub.content.form.js index cb756c7230..15cf8e4c45 100644 --- a/protected/humhub/modules/content/resources/js/humhub.content.form.js +++ b/protected/humhub/modules/content/resources/js/humhub.content.form.js @@ -243,8 +243,12 @@ humhub.module('content.form', function (module, require, $) { const initial = stateInput.data('initial'); if (initial !== undefined) { stateInput.val(initial.state); - button.data('htmlOld', initial.buttonTitle).removeAttr('style'); - loader.reset(button); + if (loader.is(button)) { + button.data('htmlOld', initial.buttonTitle).removeAttr('style'); + loader.reset(button); + } else { + button.html(initial.buttonTitle); + } } this.$.find('input[name^=scheduled]').remove(); this.$.find('.label-content-state').hide();