Merge pull request #20424 from owncloud/fix-group-count-undo
Fix user count on undo of user deletion
This commit is contained in:
commit
9d99049107
|
@ -315,11 +315,7 @@ var UserList = {
|
||||||
var gid = groups[i];
|
var gid = groups[i];
|
||||||
var $li = GroupList.getGroupLI(gid);
|
var $li = GroupList.getGroupLI(gid);
|
||||||
var userCount = GroupList.getUserCount($li);
|
var userCount = GroupList.getUserCount($li);
|
||||||
if(userCount === 1) {
|
GroupList.setUserCount($li, userCount - 1);
|
||||||
GroupList.setUserCount($li, '');
|
|
||||||
} else {
|
|
||||||
GroupList.setUserCount($li, userCount - 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
GroupList.decEveryoneCount();
|
GroupList.decEveryoneCount();
|
||||||
UserList.hide(uid);
|
UserList.hide(uid);
|
||||||
|
@ -334,11 +330,7 @@ var UserList = {
|
||||||
var gid = groups[i];
|
var gid = groups[i];
|
||||||
var $li = GroupList.getGroupLI(gid);
|
var $li = GroupList.getGroupLI(gid);
|
||||||
var userCount = GroupList.getUserCount($li);
|
var userCount = GroupList.getUserCount($li);
|
||||||
if(userCount === 1) {
|
GroupList.setUserCount($li, userCount + 1);
|
||||||
GroupList.setUserCount($li, '');
|
|
||||||
} else {
|
|
||||||
GroupList.setUserCount($li, userCount + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
GroupList.incEveryoneCount();
|
GroupList.incEveryoneCount();
|
||||||
UserList.getRow(uid).show();
|
UserList.getRow(uid).show();
|
||||||
|
|
Loading…
Reference in New Issue