1
0
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:
Carlos Martín 2016-10-07 09:47:56 +02:00
parent a8baefb86b
commit dd60449299
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ define(function(require) {
call: function(){
selected = roleElements();
if(selected.lenght == 0){
if(selected.length == 0){
return;
}

View File

@ -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;