If a node you are using WebFM attachments on is being managed by the Workflow module, and you change workflow states using the workflow tab, WebFM will lose all attachments for the node. This only happens if the Workflow Tab is being used to change states, and not if you are doing it while editing the page.
The attached patch adds a simple check when the page is updated to make sure that the array element 'attachlist' exists in $_POST. The way I understand it, ff this element exists and is empty, then either there were no files attached or the user removed all the files that were attached. If the element does not exist, then WebFM's UI was not present on the page and no action should be taken.
| Comment | File | Size | Author |
|---|---|---|---|
| webfm.module.patch | 538 bytes | iris_passcal |
Comments
Comment #1
dawehnerpatch also applies for 5.x version!
and works as expected
Comment #2
iris_passcal commentedWow. I hadn't even considered that!
Thanks for checking!
Comment #3
dawehneri works also on 6.x
Comment #4
robmilne commentedThanks. In head