diff --git a/include/simpleplugin/attributes/class_PhoneNumberAttribute.inc b/include/simpleplugin/attributes/class_PhoneNumberAttribute.inc index 539692c2d8619825be0e811b626ba493db8536fc..9a5ced3fbcbd30c812687311aac76794cedb1218 100644 --- a/include/simpleplugin/attributes/class_PhoneNumberAttribute.inc +++ b/include/simpleplugin/attributes/class_PhoneNumberAttribute.inc @@ -108,11 +108,15 @@ class phoneSelectDialog extends GenericDialog /*! \brief This class allow to handle easily an LDAP attribute that contains a phone number */ -class PhoneNumberAttribute extends TestValidateAttribute +class PhoneNumberAttribute extends StringAttribute { protected $trim = TRUE; - protected $testFunc = 'is_phone_nr'; protected $inputType = 'tel'; + + function __construct ($label, $description, $ldapName, $required = FALSE, $defaultValue = '', $acl = '', $regexp = '/^[\/0-9 ()+*-]+$/', $example = NULL) + { + parent::__construct($label, $description, $ldapName, $required, $defaultValue, $acl, $regexp, $example); + } } /*! \brief Displays a text field and a button to select the phone from object list