Closed (fixed)
Project:
Drupal core
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2005 at 01:24 UTC
Updated:
8 Dec 2005 at 22:20 UTC
Jump to comment: Most recent file
1. Create some nodes
2. Go to admin -> content
3. Select node(s)
4. Choose "Delete the selected posts" and click "Update"
5. The posts are not deleted.
Version is CVS HEAD as of October 24 2005
-Steve
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | node.module_18.patch | 5.16 KB | drewish |
Comments
Comment #1
shouchen commentedSee also: http://drupal.org/node/35176
Comment #2
jeremy commentedAlso see: http://drupal.org/node/37695
Comment #3
drewish commentedI think (though I'm not sure) that part of the problem was the dispatch done by node_admin(). Either way it was an un-needed layer of redirection.
The main problem was that node_admin_nodes() was mixing up the two forms just to get the values set in the $form_values global. All the needed data was in the $_POST so I now the delete form is independent of the node_admin_nodes() form. I renamed node_multiple_delete_form() to node_multiple_delete_confirm() to match the name of the the single node delete function (node_delete_confirm()).
Give the attached patch a try. There may be a cleaner way to do it but, I've done a bit of testing on it and this seems to work pretty well.
Comment #4
drummApplied and mass deleting worked. Good code improvement too.
+1
Comment #5
Steven commentedPatch works, +1 on the cleanup too.
The only part I don't like is where you added the code for title-less nodes. As far as I know, all nodes require a title. There are plenty of UI parts which would otherwise be empty or broken. Plus, you used a non-localizable string, with non-semantic italic tags (we would use em instead).
Committed to HEAD minus that 'untitled' part.
Comment #6
drewish commentedAhh, sorry about that title-less nodes bit. I'd ment to filter that out before rolling the patch. The whole reason I found the bug (and needed to fix it) was to clean up a bunch of title-less nodes left over from a broken module. I'd add the titles as part of the debugging process.
Comment #7
(not verified) commented