Fixes validation of role when creating new user

4.x.x
Pasindu 7 years ago
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…
Cancel
Save