Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
3f47c7dc
Commit
3f47c7dc
authored
Dec 07, 2016
by
Côme Chilliet
Browse files
Fixes
#5270
ACL assignment list is now bigger, and member list is abbreviated if too long
parent
f6355a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/admin/acl/class_aclAssignment.inc
View file @
3f47c7dc
...
...
@@ -178,11 +178,18 @@ class ACLsAssignmentAttribute extends DialogOrderedArrayAttribute
{
protected
$order
=
TRUE
;
protected
$dialogClass
=
'ACLsAssignmentDialog'
;
protected
$height
=
300
;
protected
function
getAttributeArrayValue
(
$key
,
$value
)
{
/* Convert text value to displayable array value */
$value
[
'members'
]
=
join
(
', '
,
$value
[
'members'
]);
sort
(
$value
[
'members'
]);
static
$nbShown
=
4
;
$members
=
join
(
', '
,
array_slice
(
$value
[
'members'
],
0
,
$nbShown
));
if
(
count
(
$value
[
'members'
])
>
$nbShown
)
{
$members
.
=
sprintf
(
_
(
', and %d others'
),
(
count
(
$value
[
'members'
])
-
$nbShown
));
}
$value
[
'members'
]
=
$members
;
return
$value
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment