#4114 closed defect (bug) (fixed)
getCategoryList should not include tag names
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 2.2 |
Component: | XML-RPC | Keywords: | |
Focuses: | Cc: |
Description
The getCategoryList implementation currently returns a list of all categories from the database, including those that are actually tag names. My understanding is that storage of tag names in the categories table is an implementation detail. The tag items should be filtered from the list that is returned by getCategoryList().
Attachments (1)
Change History (5)
#1
@
16 years ago
Attaching patch xmlrpc.php.diff, with a change to exclude any categories whose type bitfield does not contain TAXONOMY_CATEGORY.
#2
@
16 years ago
You can do the check directly in the query.
WHERE (type & " . TAXONOMY_CATEGORY . " != 0)
Note: See
TracTickets for help on using
tickets.
Patch to exclude non-category taxonomies from the getCategoryList function.