summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-05 13:59:28 -0700
committerBart Visscher <bartv@thisnet.nl>2013-04-05 13:59:28 -0700
commit0e35eee6ac76477c445e4447349de15feab6857e (patch)
treefb20d7386a076a51bd5d008ba950e4411bb78875
parent5525fade11d626c4743b5d6f60a1adbcbc22f9fe (diff)
parent32f96e19e54bbbc10857bccd5e51389cf074305f (diff)
downloadnextcloud-server-0e35eee6ac76477c445e4447349de15feab6857e.tar.gz
nextcloud-server-0e35eee6ac76477c445e4447349de15feab6857e.zip
Merge pull request #2750 from Kondou-ger/fix_2693
Fix #2693
-rw-r--r--settings/js/users.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index d79b21765ff..b92feb52334 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -218,9 +218,9 @@ var UserList = {
group: group
},
function (response) {
- if(response.status === 'success' && response.data.action === 'add') {
- if(UserList.availableGroups.indexOf(response.data.gropname) === -1) {
- UserList.availableGroups.push(response.data.gropname);
+ if(response.status === 'success') {
+ if(UserList.availableGroups.indexOf(response.data.groupname) === -1 && response.data.action === 'add') {
+ UserList.availableGroups.push(response.data.groupname);
}
} else {
OC.Notification.show(response.data.message);