Revision 92a1a4fb5c0331fa94fb55e383f2646fe352ea28
Committed on 31/10/2016 4:32 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.