forked from mirrors/easyappointments
Added missing validation call in system settings
This commit is contained in:
parent
ea4295e1ad
commit
6fa2451a08
1 changed files with 4 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue