mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
B #4854: Fix user creation with no groups selected
This commit is contained in:
parent
a8baefb86b
commit
dd60449299
@ -107,7 +107,7 @@ define(function(require) {
|
||||
call: function(){
|
||||
selected = roleElements();
|
||||
|
||||
if(selected.lenght == 0){
|
||||
if(selected.length == 0){
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ define(function(require) {
|
||||
"user" : this.userCreation.retrieve(context)
|
||||
};
|
||||
|
||||
if (user_json.user.gid == "-1" && user_json.user.gids.lenght != 0){
|
||||
if (user_json.user.gid == "-1" && user_json.user.gids.length != 0){
|
||||
Sunstone.hideFormPanelLoading(this.tabId);
|
||||
Notifier.notifyError(Locale.tr("To define secondary groups you need to also set the main group"));
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user