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.

Comments

chx’s picture

StatusFileSize
new4.08 KB
DriesK’s picture

Just 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.

DriesK’s picture

I was too fast. Didn't see the & in taxonomy_save_vocabulary(&$edit). This patch indeed solves the problem in a much cleaner way.

killes@www.drop.org’s picture

The patch looks excellent and removes some crufty code. :)
Unfortunately I cannot test it right now.

willmoy’s picture

Status: Needs review » Needs work

When 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

chx’s picture

StatusFileSize
new6.17 KB

It seems forum.module was a bit broken before. Well, this patch cleans up things a bit.

chx’s picture

Status: Needs work » Needs review
chx’s picture

StatusFileSize
new6.17 KB

this gets better.

morbus iff’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine to me.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

menesis’s picture

Status: Fixed » Reviewed & tested by the community
StatusFileSize
new771 bytes

container updated case is repeated twice, should be deleted once.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)