Added missing validation call in system settings

This commit is contained in:
Alex Tselegidis 2021-10-04 09:27:32 +02:00
parent ea4295e1ad
commit 6fa2451a08

View file

@ -29,6 +29,10 @@
* @param {Array} settings Contains the system settings data. * @param {Array} settings Contains the system settings data.
*/ */
SystemSettings.prototype.save = function (settings) { 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 url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_settings';
var data = { var data = {