Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
fusiondirectory
fusiondirectory
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Labels
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • fusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #5906

Closed
Open
Opened Oct 09, 2018 by gallak@gallak
  • Report abuse
  • New issue
Report abuse New issue

template enhancement for multivalued field

Requirements

an FD 1.3 fully functional

Descriptive title for this enhancement

apply template with some specific action on multi valued field

Actual behavior

if a value is set in multi valued field in template, all values are replace in destination template when template is apply. There is non incremental way ( adding value instead of replace)

Expected behavior

on template in multi valued field such supannRefId I set a place holder like +[{MYMAIL}%sn%.%givenName%@company.fr] If I apply the template, a new value is ADDED in the field supannRefId : {MYMAIL}doe.jon@company.fr

In the same way, we could imagine to remove a specific value like -[{MYMAIL}%sn%.%givenName%@company.fr] it remove the value {MYMAIL}doe.jon@company.fr If -[{MYMAIL}* is set all value beginning by {MYMAIL}* is removed

Step by step description of new behavior

  1. create template with +[{MYMAIL}%sn%.%givenName%@company.fr] in supannRefId multi valued field
  2. the user john doe have inside the supanRefId field the following value
  supannRefId: {STUDENT}04564@university.com
  supannRefId: {PHONEID}34563456@ring.id
  1. The template is applied, we get the following field :
  supannRefId: {STUDENT}04564@university.com
  supannRefId: {PHONEID}34563456@ring.id
  supannRefId: {MYMAIL}doe.jon@company.fr

and not only : supannRefId : {MYMAIL}doe.jon@company.fr

Benefits

more capabilities for automated user creation

Possible Drawbacks

complexity of the code

Edited Jul 16, 2019 by bmortier
Assignee
Assign to
FusionDirectory 1.5
Milestone
FusionDirectory 1.5
Assign milestone
Time tracking
None
Due date
None
6
Labels
PJ1903-0263 Silver enhancement fusiondirectory-core technical discussion templates
Assign labels
  • View project labels
Reference: fusiondirectory/fd#5906