? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
31 Aug 2018

Pull Request for Issue #21083

Summary of Changes

I have moved the translation part to the view so the code does not work different on different languages. As currently the array key is the translated word already and in that case have different results depending on the used language this patch makes sure the result is always the same on all languages by translating the key later.

Testing Instructions

  • install 3.9-alpha (with sample testing data)
  • create and mod_articles_category with the new option (Group by tags) added here #21083
  • Check that is displays good in the frontend
  • Create an article with the Tag "Untagged"
  • Notice that the article is listed in the Untagged list in the frontend.
  • apply this patch
  • Joomla differentiate now between actually tagged and not tagged articles.

Expected result

Joomla differentiate now between actually tagged and not tagged articles.

Actual result

Joomla does not differentiate between actually tagged and not tagged articles.

Documentation Changes Required

None.

cc @SharkyKZ as original author of the PR #21083

avatar zero-24 zero-24 - open - 31 Aug 2018
avatar zero-24 zero-24 - change - 31 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2018
Category Modules Front End
avatar SharkyKZ
SharkyKZ - comment - 31 Aug 2018

This breaks ordering.

avatar zero-24
zero-24 - comment - 1 Sep 2018

What do you mean? Without this the ordering is always different per language and can result into false positives when the article title is the same like the translation. Not to forget some maybe illegal chars for an array key in the translation.

avatar SharkyKZ
SharkyKZ - comment - 1 Sep 2018

Alphabetical ordering. Untagged will always be where M should be because of language key. I guess, because it's not a real tag, we could just append it to the list. See zero-24#39 for possible solution.

avatar zero-24 zero-24 - change - 1 Sep 2018
Labels Added: ?
avatar zero-24
zero-24 - comment - 1 Sep 2018

I have merged your PR. Thanks!

avatar crommie
crommie - comment - 8 Sep 2018

Not clear what should happen here. Without patch: list is rendered, with the new tagged article at the bottom of the list.

afbeelding

With patch: list is rendered, with the new tagged article at the top of the list.

afbeelding

Is this the expected outcome?


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

avatar sanderpotjer
sanderpotjer - comment - 8 Sep 2018

I have tested this item successfully on cc3be04

With patch the article is listed under the label "Untagged"
After patch the article is listed under the label "Untagged", which is now a real tag heading. Other articles are grouped with "Untagged" at end of the list.


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

avatar sanderpotjer
sanderpotjer - comment - 8 Sep 2018

I have tested this item successfully on cc3be04

With patch the article is listed under the label "Untagged"
After patch the article is listed under the label "Untagged", which is now a real tag heading. Other articles are grouped with "Untagged" at end of the list.


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

avatar sanderpotjer sanderpotjer - test_item - 8 Sep 2018 - Tested successfully
avatar crommie
crommie - comment - 8 Sep 2018

I have tested this item successfully on cc3be04

Ah. Tag needed a capital to render expected outcome.

Without patch: tagged article appears in Untagged items
With patch: tagged article appears in items with tag Untagged.


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

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

Ready to Commit after two successful tests.

avatar hildaabbing
hildaabbing - comment - 8 Sep 2018

I have tested this item successfully on cc3be04

Steps reproduced. Works as expected


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

avatar hildaabbing hildaabbing - test_item - 8 Sep 2018 - Tested successfully
avatar mbabker mbabker - change - 8 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-08 15:35:16
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 8 Sep 2018
avatar mbabker mbabker - merge - 8 Sep 2018
avatar zero-24
zero-24 - comment - 16 Sep 2018

Thanks ?

Add a Comment

Login with GitHub to post a comment