mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSformElement_maildir :
-> Correction d'un bug idiot ;) -> Ajout d'un commentaire concernant les options HTML gérées
This commit is contained in:
parent
7df8ed984d
commit
c6cf4b46a1
1 changed files with 20 additions and 1 deletions
|
@ -29,6 +29,25 @@ $GLOBALS['LSsession'] -> loadLSaddon('maildir');
|
|||
* Cette classe définis les éléments maildir des formulaires.
|
||||
* Elle étant la classe LSformElement_text.
|
||||
*
|
||||
* Options HTML :
|
||||
* // *************************************
|
||||
* 'html_options' => array (
|
||||
* // Required
|
||||
* 'LSform' => array ( // To define if the user can active triggers for the LSform
|
||||
* 'create' => 1, // Example : LSform 'create' => Triggers active by default
|
||||
* 'modify' => 0 // Example : LSform 'create' => Triggers disable by default
|
||||
* ),
|
||||
* // Optional
|
||||
* 'remoteRootPathRegex' => "^\/home\/vmail\/([^\/]*)\/+$", // Regex to determine the path of
|
||||
* // maildir from the attribute value
|
||||
* 'archiveNameFormat' => "archives/%{old}" // To archive rather than destroyed :
|
||||
* // At the elimination, the maildir is moved
|
||||
* // rather than deleted. The new name / path
|
||||
* // of the maildir is determined from the old
|
||||
* // name and LSformat.
|
||||
* ),
|
||||
* // *************************************
|
||||
*
|
||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||
*/
|
||||
|
||||
|
@ -69,7 +88,7 @@ class LSformElement_maildir extends LSformElement_text {
|
|||
$retval = parent :: getPostData($return);
|
||||
|
||||
// Si une valeur est recupérée
|
||||
if ($retval&&$_POST['LSformElement_maildir_description_do']) {
|
||||
if ($retval&&$_POST['LSformElement_maildir_'.$this -> name.'_do']) {
|
||||
$cur = $this -> form -> ldapObject -> attrs[$this -> name] -> getValue();
|
||||
$cur=$cur[0];
|
||||
$new = $return[$this -> name][0];
|
||||
|
|
Loading…
Reference in a new issue