Added missing validation call in system settings

This commit is contained in:
Alex Tselegidis 2021-10-04 09:27:32 +02:00
parent f20c323da0
commit 9407f23c0e
1 changed files with 4 additions and 0 deletions

View File

@ -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 = {