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
1e4b9d20
Commit
1e4b9d20
authored
Oct 12, 2015
by
Côme Chilliet
Browse files
Fixed DialogButtonAttribute and UserAttribute
parent
0f48e8c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_dialogAttributes.inc
View file @
1e4b9d20
...
...
@@ -579,9 +579,9 @@ class DialogButtonAttribute extends ButtonAttribute
{
protected
$dialogClass
=
NULL
;
function
__construct
(
$label
,
$description
,
$ldapName
,
$
required
,
$dialogClass
,
$buttonText
,
$defaultValue
=
""
,
$acl
=
""
)
function
__construct
(
$label
,
$description
,
$ldapName
,
$
buttonText
,
$dialogClass
,
$defaultValue
=
''
,
$acl
=
''
)
{
parent
::
__construct
(
$label
,
$description
,
$ldapName
,
$required
,
$buttonText
,
$defaultValue
,
$acl
);
parent
::
__construct
(
$label
,
$description
,
$ldapName
,
$buttonText
,
NULL
,
$defaultValue
,
$acl
);
$this
->
dialogClass
=
$dialogClass
;
}
...
...
@@ -597,7 +597,8 @@ class UserAttribute extends DialogButtonAttribute
{
function
__construct
(
$label
,
$description
,
$ldapName
,
$required
=
FALSE
,
$defaultValue
=
""
,
$acl
=
""
)
{
parent
::
__construct
(
$label
,
$description
,
$ldapName
,
$required
,
'SingleUserSelectDialog'
,
''
,
$defaultValue
,
$acl
);
parent
::
__construct
(
$label
,
$description
,
$ldapName
,
''
,
'SingleUserSelectDialog'
,
$defaultValue
,
$acl
);
$this
->
setRequired
(
$required
);
}
function
handleDialogResult
(
$dn
,
$attrs
)
...
...
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