mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Added missing validation call in system settings
This commit is contained in:
parent
f20c323da0
commit
9407f23c0e
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