forked from mirrors/easyappointments
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.
|
* @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 = {
|
||||||
|
|
Loading…
Reference in a new issue