diff --git a/themes/grav/app/updates/safe-upgrade.js b/themes/grav/app/updates/safe-upgrade.js index 6f8e9d0f..b023a7a4 100644 --- a/themes/grav/app/updates/safe-upgrade.js +++ b/themes/grav/app/updates/safe-upgrade.js @@ -487,7 +487,15 @@ export default class SafeUpgrade { this.stopPolling(); this.jobId = null; - const body = { decisions: this.decisions }; + const decisionFields = {}; + Object.keys(this.decisions || {}).forEach((key) => { + const value = this.decisions[key]; + if (value) { + decisionFields[`decisions[${key}]`] = value; + } + }); + + const body = decisionFields; request(this.urls.start, { method: 'post', body }, (response) => { if (!this.active) { diff --git a/themes/grav/js/admin.min.js b/themes/grav/js/admin.min.js index 63dd673b..b56409a1 100644 --- a/themes/grav/js/admin.min.js +++ b/themes/grav/js/admin.min.js @@ -4905,9 +4905,14 @@ var SafeUpgrade = /*#__PURE__*/function () { this.buttons.start.prop('disabled', true); this.stopPolling(); this.jobId = null; - var body = { - decisions: this.decisions - }; + var decisionFields = {}; + Object.keys(this.decisions || {}).forEach(function (key) { + var value = _this4.decisions[key]; + if (value) { + decisionFields["decisions[".concat(key, "]")] = value; + } + }); + var body = decisionFields; utils_request(this.urls.start, { method: 'post', body: body