From 6fa2451a085a552650ee15aaa45cad92cea1b928 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 4 Oct 2021 09:27:32 +0200 Subject: [PATCH] Added missing validation call in system settings --- assets/js/backend_settings_system.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/backend_settings_system.js b/assets/js/backend_settings_system.js index 46cb4fd8..afdad951 100644 --- a/assets/js/backend_settings_system.js +++ b/assets/js/backend_settings_system.js @@ -29,6 +29,10 @@ * @param {Array} settings Contains the system settings data. */ SystemSettings.prototype.save = function (settings) { + if (!this.validate()) { + return; // Validation failed, do not proceed. + } + var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_settings'; var data = {