?
avatar ColinM2
ColinM2
21 Sep 2016

This relates to Categories other than Article categories such as Contacts Categories, News Feed Categories that have Tags. Basically these tagged categories appear in tagged lists when they are Unpublished. Generally they have a link which if used gives a 404 error.
This is also part of a problem with Tags in Component related Tags #12038 which in turn is related to Commit #10304

Steps to reproduce the issue

For example create a category in Contacts component and give it a tag. Also create a Contact in the Category. It is perhaps convenient to also to give that the same tag so it appears in the Tag Listing. Add same tag to a regular article. View article and cick on tag. Check that both the Contact Category and Contact Item appear in a tag list as well as article. Now Unpublish the Contact Category. Clear cache and again click on the tag in article.
Note this also applies to News Feed Categories, to Banner Categories (to a lesser extent as they are not linkable) and possibly in other content category types I have not tested.
Note also the general problem with Tags in other user provided Components failing to appear as noted in #12038

Expected result

The Contact Category should not appear, The Contact Item should not appear.

Actual result

The Contact Item does not appear,which is good.
The Contact Category still appears, which is wrong. Further if you click on the link in the list then a 404 error occurs.

System information (as much as possible)

Standard Joomla! 3.6.2

Additional comments

Note also the general problem with Tags in other user provided Components failing to appear as noted in #12038 as a result of Commit #10304
I have no suggested solution

avatar ColinM2 ColinM2 - open - 21 Sep 2016
avatar brianteeman brianteeman - change - 21 Sep 2016
Category Tags
avatar brianteeman brianteeman - change - 22 Sep 2016
Labels Added: ?
avatar eshiol
eshiol - comment - 28 Oct 2016

There is a bug in the publishing

replace the line 1023 in the file libraries/legacy/model/admin.php

        $context = $this->option . '.' . $this->name;

with

        if ($this->option != 'com_categories')
        {
            $context = $this->option . '.' . $this->name;
        }
        elseif ($extension = JFactory::getApplication()->input->get('extension', ''))
        {
            $context = $extension . '.' . $this->name;
        }
        else
        {
            $context = $this->option . '.' . $this->name;
        }

Republish and unpublish the category before test the tag listing

avatar zero-24
zero-24 - comment - 28 Oct 2016

Can you send that code as pull request against staging?

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Closed as we have a PR for testing thanks #12613

avatar brianteeman brianteeman - change - 28 Oct 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-10-28 20:55:46
Closed_By brianteeman
avatar brianteeman brianteeman - close - 28 Oct 2016

Add a Comment

Login with GitHub to post a comment