Change By: Mikaël Geljic (03/Oct/14 1:08 PM)
Description: Use Case:
Adding
 a  an  image to the user dialog in security app.

Problem:
{{ info.magnolia.security.app.dialog.action.SaveUserDialogAction }}
Is not calling in the As {{  JcrNodeAdapter#applyChanges()  as it needs to store the properties different (groups and roles). This }}  is  because applyChanges() calls besides the updateChildren(Node) also the updateProperties(node) method.

Problem:
As applyChanges() is
 not called, the  {{AbstractJcrNodeAdapter#  updateChildren(Node) }}  is also never called -> no dialog field value will be stored which creates a subnode instead of a property (example:  {{  DamUploadFieldDefinition }} ).

Solution:
Make the method updateChildren(Node) public as also the updateProperties(node) is public. The the info.magnolia.security.app.dialog.action.SaveUserDialogAction.createOrUpdateUser(JcrNodeAdapter) can call the updateChildren(Node) explicit on the user node (see patch of SaveUserDialogAction).
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to