? Success

User tests: Successful: Unsuccessful:

avatar Harmageddon
Harmageddon
15 Jun 2014

The "Popular Tags" module shows tags from all tagged items, regardless of their respective publishing status. If you have an article that is not published yet tagged with "Tag1", this tag shows in "Popular Tags" with 1 article, but if you click on the link for the article list, no article is shown.

Testing instructions:

  1. Create a mod_tags_popular module (optionally: enable "Display number of items")
  2. Create a taggable item (e.g. an article) and tag it.
  3. Set the item's status to "unpublished".
    • Look at the module's output in frontend.
  4. Set the item to published, but with a future publish date.
    • Look at the module's output in frontend.
  5. Set the item to published, but with a past de-publish date.
    • Look at the module's output in frontend.
  6. Apply the patch and repeat steps 3-5.

Please be aware that there are more taggable item types than just articles. I tested it with articles and contacts without any problems. And please have a short look at the SQL query, too, to ensure, that everything is correct here. Thanks!

JoomlaCode item: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33868

avatar Harmageddon Harmageddon - open - 15 Jun 2014
avatar Harmageddon Harmageddon - change - 15 Jun 2014
Title
Only show published content in mod_tags_popular
[#33868] Only show published content in mod_tags_popular
avatar roland-d
roland-d - comment - 29 Jun 2014

@test: Works as expected, the tag no longer shows up when the article is unpublished, has a future publish date or has a past unpublish date.

There is a codestyle issue with the patch though:

:33: trailing whitespace.
->join('INNER', $db->quoteName('#__ucm_content', 'c') . ' ON ' . $db->quoteName('m.core_content_id') . ' = ' . $db->quoteName('c.core_content_id'))
:36: trailing whitespace.

warning: 2 lines add whitespace errors.

Please fix that and we can move it forward.

avatar Bakual Bakual - change - 9 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-09 19:40:35
avatar Bakual Bakual - close - 9 Jul 2014

Add a Comment

Login with GitHub to post a comment