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.

CommentFileSizeAuthor
webfm.module.patch538 bytesiris_passcal

Comments

dawehner’s picture

patch also applies for 5.x version!

and works as expected

iris_passcal’s picture

Wow. I hadn't even considered that!

Thanks for checking!

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

i works also on 6.x

robmilne’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. In head

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.