Revision 4c1569df04b41a57c7720b6478e7b881f4d64015

Committed on 26/10/2016 6:15 am by Hrvoje Knežević <hrvoje.k@netgen.hr> [GitHub Diff]

Fixed data parameter names in tree and treeconfig eZJSCore methods

Description: when a Tree view edit mode is enabled, data-parentId passed in response creates data-parentid field in markup and tag.parentid property in Javascript Tag objects, while all the methods are expecting parent_id property. When tag is added in attribute, empty parent tag ID value will be appended to attribute post field 'ContentObjectAttribute_eztags_data_text2_'. This will result with validation error if user tries to store draft or publish the object. On second try, however, storing draft or publishing object would be successfully completed since the selected tags would be refetched and data_text2 field would receive correct parent id list.