Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2006 at 12:59 UTC
Updated:
31 Oct 2006 at 13:14 UTC
In the attached screenshot, content_appeal is the CCK type that was deleted. Thankfully, it is removed clean from the edit vocabulary page, but it can still be confusing.
| Comment | File | Size | Author |
|---|---|---|---|
| deleted_type_still_shown.gif | 5.93 KB | venkat-rk |
Comments
Comment #1
RayZ commentedDid you try clearing the cache? I assume that would make it disappear ... which doesn't mean that it isn't a minor bug.
Comment #2
venkat-rk commentedBrowser cache? Or the database may be?
Comment #3
RayZ commentedDatabase.
Comment #4
venkat-rk commentedThanks. I just cleared the cache table but the problem still remains.
Comment #5
karens commentedThis appears to me to be a problem in the taxonomy module. The content types are stored in the vocabulary_node_types table but there is no hook to call to force taxonomy to update that table. Clearing the cache doesn't help because it's not stored in the cache, it's stored in a table. I don't see any way to solve this in the content module, but maybe someone else does.
Comment #6
karens commentedActually, I think this is going to be even more of a problem in 5.0 with configurable content types where more people will be adding and deleting content types. I think taxonomy either needs a hook that other modules can call to update that table when a node type is deleted or it needs to intervene in some other way to update that table. I don't know the best solution for this, so I'll just throw it out for discussion.
Comment #7
pwolanin commentedThere are several open issues related to this:
http://drupal.org/node/85062
http://drupal.org/node/80375
http://drupal.org/node/80253
http://drupal.org/node/80253
which, unfortunately, have not seen any progress recently. So I think this issue is a duplicate of http://drupal.org/node/85062
Comment #8
karens commentedActually I think this is a different issue (although it has some relation). This issue specifically addresses the fact that the taxonomy module does not have any way to update the vocabulary_node_types table when a type is deleted, and that requires some sort of update to taxonomy. It also does not have any way to update that table when a node type is renamed, so it impacts the issues you point to, too. The issue you call a duplicate would fix the content module but would still not fix the taxonomy module, which is why I posted it here.
Comment #9
pwolanin commentedYes, I agree it's not fully a duplicate. One of the other issues I pointed to is a proposal to add a hook to allow modules to respond to addition/deletion/renaming of content types. Maybe we should go mark that one as "critical"?
Comment #10
karens commentedActually none of your links pointed to anything about creating a hook, but one of the links linked to something that I think is what you are talking about, http://drupal.org/node/80257. I like that idea. If such a hook existed it would make sense for the taxonomy module to use it to keep its table up to date.
Comment #11
karens commentedI'm going to close this issue and redirect this discussion to http://drupal.org/node/80257 where there is a patch that would solve this problem.