diff options
author | Owen Winkler <epithet@gmail.com> | 2013-08-15 14:19:40 +0400 |
---|---|---|
committer | Owen Winkler <epithet@gmail.com> | 2013-08-15 14:19:40 +0400 |
commit | cd7e57e8ec64ffef8faec750ebffbdc6138ec9a0 (patch) | |
tree | f567c89a4f75d9ebdf25dc9f6a508af3993460f1 /settings/templates | |
parent | 75e9015b5445e957f2454373bed67dac1741b5cb (diff) |
Use JSON to send/receive group data.
Squashed commits from PR #4364 for master.
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/users.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/templates/users.php b/settings/templates/users.php index 4ddef3ff1b5..22450fdf25f 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -78,7 +78,7 @@ $_['subadmingroups'] = array_flip($items); </div> </div> -<table class="hascontrols" data-groups="<?php p(implode(', ', $allGroups));?>"> +<table class="hascontrols" data-groups="<?php p(json_encode($allGroups));?>"> <thead> <tr> <th id='headerName'><?php p($l->t('Username'))?></th> @@ -108,7 +108,7 @@ $_['subadmingroups'] = array_flip($items); <td class="groups"><select class="groupsselect" data-username="<?php p($user['name']) ;?>" - data-user-groups="<?php p($user['groups']) ;?>" + data-user-groups="<?php p(json_encode($user['groups'])) ;?>" data-placeholder="groups" title="<?php p($l->t('Groups'))?>" multiple="multiple"> <?php foreach($_["groups"] as $group): ?> @@ -120,7 +120,7 @@ $_['subadmingroups'] = array_flip($items); <td class="subadmins"><select class="subadminsselect" data-username="<?php p($user['name']) ;?>" - data-subadmin="<?php p($user['subadmin']);?>" + data-subadmin="<?php p(json_encode($user['subadmin']));?>" data-placeholder="subadmins" title="<?php p($l->t('Group Admin'))?>" multiple="multiple"> <?php foreach($_["subadmingroups"] as $group): ?> |