1 - Call JHelperTags getTagItemsQuery method with the 2nd argument containing an array of type aliases (as perhttp://api.joomla.org/cms-3/classes/JHelperTags.html#method_getTagItemsQuery
A DB object with items matching those tags, filtered by content type
Error 1064 (MySQl error)
Joomla 3.3.6
PHP 5.3
The fix is fairly simple. getTagItemsQuery documentation says it expects the 2nd argument to be an array of content type aliases, a single alias, or null. In fact, because line 560 of JHelperTags calls self::getTypes('assocList', $typesr, false); with the 3rd param as 'false' it actually expects content type IDs, not aliases. Thus, the query causes an error. Changing this to true, or supplying getTagItemsQuery with type IDs, does not cause the issue
Hi Nick, no problem at all - now done.
Labels |
Added:
?
|
Thanks Paul!
@nicksavov can you move the PBF label to #4698 ? So we can close here and use the PR for discussion. Thanks
Thanks @nicksavov
Status | New | ⇒ | Closed |
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/4655
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-16 12:42:10 |
Closing here as we have a PR now thanks @muckypuddle
Labels |
Added:
?
Removed: ? |
Labels |
Removed:
?
|
Labels |
Added:
?
|
Thanks Paul! Could you submit a pull request for it? Here's a really easy way how:
http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests