Problem/Motivation
When a file is attached to a node using the CMIS Field, it must be removed on node update if the title is emptied.
Instead, if the title is emptied and the node is saved, the file remains attached to the node but with an empty title.
Proposed resolution
The problem is in the implementation of hook_field_is_empty(). The function checks if $item['path'] is empty; instead, it must check $item['title'].
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | cmis-attached_file_not_removed_when_title_is_emptied-2940560-2-D7.patch | 780 bytes | mithenks |
Comments
Comment #2
mithenks commentedHere is a patch.