Menu

#1076 Generic replacement for the lifcycle action SetCurrentUser

2.2.0
closed
nobody
Core/OQL
High
2.1.0
enhancement
2015-08-20
2015-03-12
No

The verb DBObject::SetCurrentUser udpates an attribute with the id (integer value) of the current user.

What if you would like to record the login, or even the name or email of the associated contact?

A generic solution would be to let the developer specfiy the action as
SetFromTemplate('resolved_by', 'Resolved by $current_user->contactid->email$')

That would require three steps to implement:
1) Implement the new verb (SetFromTemplate or SetString?) in DBObject
2) Improve the templating to enable the placeholder current_user. This is the exact same need as for [#900]
3) Expose the new verb in the meta information (xml)

Related

Tickets: #1132
Tickets: #900

Discussion

  • Denis

    Denis - 2015-04-02
    • Milestone: Unassigned --> 2.2.0
     
  • Romain Quetiez

    Romain Quetiez - 2015-08-20
    • status: new --> closed
     
  • Romain Quetiez

    Romain Quetiez - 2015-08-20

    The need is fulfilled.

    A new ticket has been created for SetFromTemplate: [#1132]

     

    Related

    Tickets: #1132


Log in to post a comment.