Closed (fixed)
Project:
Drupal core
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Aug 2005 at 04:50 UTC
Updated:
6 Oct 2005 at 20:00 UTC
Jump to comment: Most recent file
What is described on http://drupal.org/node/22218 is nice. What is in the core is super ugly. I surely was not paying attention when did slipped in.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | forum_saved_deleted.patch | 771 bytes | menesis |
| #8 | taxonomy_save_0.patch | 6.17 KB | chx |
| #6 | taxonomy_save.patch | 6.17 KB | chx |
| #1 | taxonomy_save_return_0.patch | 4.08 KB | chx |
| taxonomy_save_return.patch | 4.08 KB | chx |
Comments
Comment #1
chx commentedComment #2
DriesK commentedJust before I read this issue, I updated http://drupal.org/node/22218 to reflect what is currently in core.
Until about a month ago, taxonomy_save_* functions were as in your current patch. However, several modules (such as forum, simplenews) need vid to be returned by taxonomy_save_vocabulary (as it was before the status messages were introduced). Therefore, Dries committed patch #19621 to fix this. See http://drupal.org/node/19621 and http://drupal.org/node/26421.
Comment #3
DriesK commentedI was too fast. Didn't see the & in taxonomy_save_vocabulary(&$edit). This patch indeed solves the problem in a much cleaner way.
Comment #4
killes@www.drop.org commentedThe patch looks excellent and removes some crufty code. :)
Unfortunately I cannot test it right now.
Comment #5
willmoy commentedWhen deleting a forum, i get two set_messages:
* Deleted term My forum 12.
* The forum 0 has been updated.
When deleting a forum container with one forum in it, I get 3 messages:
* Deleted term cont.
* Deleted term in.
* The forum container 0 has been updated.
Perhaps there needs to be some method of suppressing the taxonomy.module messages when the function is called from another module.
Incidentally, if you click delete on a term or forum and then cancel, you currently get redirected to admin/taxonomy or admin/forums. The latter is a typo bug which should read admin/forum, but it would be better UX in both cases if cancelling took you back to the page you were on. The current behaviour feels like cancelling a dialog box in Windows and having it show the desktop in response.
I'm not sure if you're taking responsibility for the forum.module cruft as well as the taxonomy.module cruft: adding, editing and deleting terms and vocabularies with various properties works fine in admin/taxonomy. But as you can see above, forum.module doesn't even know there are three SAVED_ possibilities so the logic is bad.
HTH,
willmoy
Comment #6
chx commentedIt seems forum.module was a bit broken before. Well, this patch cleans up things a bit.
Comment #7
chx commentedComment #8
chx commentedthis gets better.
Comment #9
morbus iffLooks fine to me.
Comment #10
dries commentedCommitted to HEAD. Thanks.
Comment #11
menesis commentedcontainer updated case is repeated twice, should be deleted once.
Comment #12
dries commentedCommitted to HEAD. Thanks.
Comment #13
(not verified) commentedComment #14
(not verified) commented