When you right-click a file that has been attached to a node, and select "Detach from Node", the file *seems* to be detached. BUT, when you click the node's [ Preview ] button, the file has been re-attached again. Thus, when you finally click the [ Save ] button, the file is still attached.

CommentFileSizeAuthor
#4 webfm-detatching-783044-4.patch743 bytesnhck
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cgmonroe’s picture

I can't seem to duplicate this. One possibility is that it's theme related. Have you tried it using Garland?

Any other details on how to duplicate it would be nice... e.g. via admin but node was owned by someone else? etc.

nhck’s picture

roball, thank you for reporting this!

Actually I can duplicate it this way:

* Edit an existing node (in this case created by myself as uid=1)
* Choose "Detach from node" and confirm the detachment
** The file disappears from the list.
* Choose preview
** The file is back in the list.

I am using Garland on a vanilla install and did this as uid=1. I guess we are missing something in webfm_nodeapi

cgmonroe’s picture

I wonder if this is a page/javascript caching issue? E.g. preview is using what's in the browser memory and not doing a refresh of the attachments?

Some debug thoughts: Use firebug to track the ajax calls to see if the attachments changes are being reloaded during preview.

nhck’s picture

Version: 6.x-2.12 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
743 bytes

Thank you for reporting this. A patch is attached - its kind of a strange solution thus I'd like to hear some of the test results first.

Thank you.

nhck’s picture

Status: Needs review » Fixed

Issue #783044 by nhck | roball: Fixed Detaching file from node gets lost on node preview.

nhck’s picture

Version: 6.x-2.x-dev » 6.x-2.17
nhck’s picture

Status: Fixed » Closed (fixed)