Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | webfm-detatching-783044-4.patch | 743 bytes | nhck |
Comments
Comment #1
cgmonroe CreditAttribution: cgmonroe commentedI 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.
Comment #2
nhck CreditAttribution: nhck commentedroball, 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
Comment #3
cgmonroe CreditAttribution: cgmonroe commentedI 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.
Comment #4
nhck CreditAttribution: nhck commentedThank 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.
Comment #5
nhck CreditAttribution: nhck commentedIssue #783044 by nhck | roball: Fixed Detaching file from node gets lost on node preview.
Comment #6
nhck CreditAttribution: nhck commentedComment #7
nhck CreditAttribution: nhck commented