Generalize autoFill Template Function #32
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I see in PLA 1.2.3 that "autoFill" in lib/Template.php has support for the "k" and "K" flags so that...
If displayName contains a colon delimited value, return the first field with: =autoFill(uid;%displayName|0/k%)
If displayName contains a space delimited value, return the first field with: =autoFill(uid;%displayName|0/K%)
However, autoFill's "k" flag would be more useful if it was generalized to support any delimiter so that...
When the mail attribute is entered, an onchange of "=autoFill(uid;%mail|0/k/@%)" could be used to split the mail attribute using a delimiter of "@" and pre-populate uid with the local part of the e-mail address (i.e. the first field).
If autoFill was generalized, the "K" flag could be deprecated in favor of the "k" flag and the "k" flag could default to using a colon as the delimiter if the code detects that the extended format is not used.
Also, the documentation on the autoFill function makes no mention of "k" and "K" flags.
mentioned in commit
fa88250f0e