Subject: | Tag Cloud prints entries from all custom fields named "Tag" |
Date: | Mon, 24 Nov 2008 22:54:11 -0800 (PST) |
To: | bug-RTx-Tags [...] rt.cpan.org |
From: | Paul Nijjar <paul_nijjar [...] yahoo.ca> |
Dear Jerrad,
This is pretty obscure. I have two custom fields named "Tags" -- one
for Tickets and one for RTFM entries. The tag cloud in "Simple Search"
picks up entries from both of these custom fields, when I think the
correct behaviour is to pick up entries only from the Ticket field.
My solution was to add the following to the SQL statement in
plugins/RTx-Tags/html/Callbacks/RTx-Tags/Search/Simple.html/PreForm,
but I am not sure what else this might break. I changed the condition
of the SQL statement from
WHERE CustomFields.Name='Tags' AND ObjectCustomFieldValues.Disabled=0
to
WHERE CustomFields.Name='Tags' AND ObjectCustomFieldValues.Disabled=0
AND CustomFields.LookupType='RT::Queue-RT::Ticket'
(Mind you, I would not mind tag cloud searches in RTFM, but that is a
different wishlist item.)
- Paul
Show quoted text
__________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com