diff --git a/layouts/vlayout/modules/Users/resources/Edit.js b/layouts/vlayout/modules/Users/resources/Edit.js index 3b86c81ae2e33ddce36ddc6fca7984c280e7f76c..23029954be44adb9335e2ee323f7d08559e98e82 100644 --- a/layouts/vlayout/modules/Users/resources/Edit.js +++ b/layouts/vlayout/modules/Users/resources/Edit.js @@ -67,6 +67,12 @@ Vtiger_Edit_Js("Users_Edit_Js",{},{ registerRecordPreSaveEvent : function(form){ var thisInstance = this; form.on(Vtiger_Edit_Js.recordPreSave, function(e, data) { + var groupingSeperatorValue = jQuery('[name="currency_grouping_separator"]', form).val(); + var decimalSeperatorValue = jQuery('[name="currency_decimal_separator"]', form).val(); + if(groupingSeperatorValue == decimalSeperatorValue){ + Vtiger_Helper_Js.showPnotify(app.vtranslate('JS_DECIMAL_SEPERATOR_AND_GROUPING_SEPERATOR_CANT_BE_SAME')); + e.preventDefault(); + } var userName = jQuery('input[name="user_name"]').val(); var newPassword = jQuery('input[name="user_password"]').val(); var confirmPassword = jQuery('input[name="confirm_password"]').val();