mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixes validation of role when creating new user
This commit is contained in:
parent
2363da7767
commit
8000124f8c
@ -256,6 +256,9 @@ $(document).ready(function () {
|
||||
} else if (!emailIsValid(emailAddress)) {
|
||||
$(errorMsg).text("Provided email is invalid.");
|
||||
$(errorMsgWrapper).removeClass("hidden");
|
||||
} else if (!roles) {
|
||||
$(errorMsg).text("Role is a required field. It cannot be empty.");
|
||||
$(errorMsgWrapper).removeClass("hidden");
|
||||
} else {
|
||||
var addUserFormData = {};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user