Commit 1e4b9d20 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixed DialogButtonAttribute and UserAttribute

parent 0f48e8c0
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment