? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
3 Feb 2018

Pull Request for Issue #13359 (comment)

Summary of Changes

Make sure the associated category is published
patch is similar to what I did for articles.

Testing Instructions

Associate a category to its equivalent in an other language.
Unpublish that equivalent.
Display the original category via a menu item or a drilldown when displaying category link for an article.
Switch via the language switcher module to the associated category which is Unpublished.
Check the hreflang in source.

If you use 3.8.3, just patch and test again
Or test with staging or 3.8.5 (stable or RC)
then this PR.

After patch

When the associated category is Unpublished OR the user has no access to it, the switcher will redirect to the Home page for the said language. That is what we want.
Also the hreflang in source will not display anymore

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar infograf768 infograf768 - open - 3 Feb 2018
avatar infograf768 infograf768 - change - 3 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2018
Category Administration com_categories
avatar infograf768 infograf768 - change - 3 Feb 2018
The description was changed
avatar infograf768 infograf768 - edited - 3 Feb 2018
avatar infograf768 infograf768 - change - 4 Feb 2018
The description was changed
avatar infograf768 infograf768 - edited - 4 Feb 2018
avatar ethernidee
ethernidee - comment - 4 Feb 2018

Tested, worked with unpublished category.

avatar Quy
Quy - comment - 4 Feb 2018

@ethernidee Please do the following to mark your test as successful:

  • Open Issue Tracker
  • Log in with your Github account
  • Click on blue Test this button above author's photo
  • Mark your test as Tested successfully
  • Click Submit test result
avatar ethernidee
ethernidee - comment - 4 Feb 2018

I have tested this item successfully on 782477e

Tested with 2 categories, unpublished one and hreflang record disappeared.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19551.

avatar ethernidee ethernidee - test_item - 4 Feb 2018 - Tested successfully
avatar infograf768
infograf768 - comment - 5 Feb 2018

@Quy Any time for you to test it too? It is an old bug... :)

avatar ethernidee
ethernidee - comment - 7 Feb 2018

@infograf768, fix the following small style issue, please:

FILE: ...omla-cms/administrator/components/com_categories/helpers/categories.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 130 | ERROR | Cast statements must be followed by a single space; expected
| | "(int) (" but found "(int)("
d7720d3 7 Feb 2018 avatar infograf768 cs
avatar infograf768 infograf768 - change - 7 Feb 2018
Labels Added: ?
avatar infograf768
infograf768 - comment - 7 Feb 2018

@ethernidee
Done.

avatar Quy
Quy - comment - 7 Feb 2018

The parentheses ($assocId) is not required.

10284e1 8 Feb 2018 avatar infograf768 cs
avatar infograf768 infograf768 - alter_testresult - 8 Feb 2018 - ethernidee: Tested successfully
avatar infograf768
infograf768 - comment - 8 Feb 2018

@Quy Done. Can you test?

avatar alikon
alikon - comment - 8 Feb 2018

I have tested this item successfully on 10284e1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19551.

avatar alikon alikon - test_item - 8 Feb 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Feb 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Feb 2018

Ready to Commit after two successful tests.

avatar ethernidee
ethernidee - comment - 8 Feb 2018

I have a few proposals:

  1. Field "access" is not quoted by db->qn.
  2. Separate request for each association is too heavy (3 extra requests for 3 languages, 10 for 10). Maybe we could use one request with where ID in (ID list) condition?
avatar mbabker mbabker - change - 13 Feb 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-02-13 00:14:00
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 13 Feb 2018
avatar mbabker mbabker - merge - 13 Feb 2018
avatar alikon
alikon - comment - 14 Feb 2018

Add a Comment

Login with GitHub to post a comment