RTC Information Required PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
15 Aug 2024

Pull Request for Issue #43920 .

Summary of Changes

removed unneeded check

Testing Instructions

  • Create a tag with access level Public
  • Create a tag with access level Registered
  • Assign public tag to an article with the access level Public
  • Assign registered tag to an article with the access level Registered
  • Create Menu Item Tags > Tagged Items
  • Access the frontend - do not login

Actual result BEFORE applying this Pull Request

404 Tag not found

Expected result AFTER applying this Pull Request

List with the public article

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2024
Category com_tags Front End
avatar alikon alikon - open - 15 Aug 2024
avatar alikon alikon - change - 15 Aug 2024
Status New Pending
avatar brianteeman
brianteeman - comment - 15 Aug 2024

This PR works BUT maybe there are other consequences of this changes as it was introduced by @Hackwar with #39114

In the tag model, the $item attribute wasn't defined. $tag at the same time wasn't used. With $item being initialised as an array, we can remove a bunch of checks. At the same time we can now properly throw a 404 if the number of tag IDs doesn't match the number of tags found in the database matching these IDs. (we might want to rewrite the TagModel::getItem() method to use a single query instead of loading each tag separately with a Table call...)

avatar MacJoom MacJoom - test_item - 24 Aug 2024 - Tested successfully
avatar MacJoom
MacJoom - comment - 24 Aug 2024

I have tested this item ✅ successfully on 798cbde

Tested with Joomla 4.4.7 PHP 8.1


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

avatar softforge softforge - test_item - 24 Aug 2024 - Tested successfully
avatar softforge
softforge - comment - 24 Aug 2024

I have tested this item ✅ successfully on 798cbde

Does exactly as it should displaying only the public tag if not logged in and both if logged in


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

avatar dautrich dautrich - test_item - 24 Aug 2024 - Tested successfully
avatar dautrich
dautrich - comment - 24 Aug 2024

I have tested this item ✅ successfully on 798cbde

Tested with J4.4.7 and PHP 8.3.6


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

avatar dautrich
dautrich - comment - 24 Aug 2024

@softforge was faster than I was!

avatar richard67 richard67 - change - 24 Aug 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 24 Aug 2024

RTC


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

avatar Hackwar
Hackwar - comment - 25 Aug 2024

As @brianteeman already stated: I'm not sure that this is correct. The behavior of tags was never defined and is a big mess of different and competing concepts. Should it display all items which only match one tag or all tags? If a tag is not available to the current user, should the view display all items which match the other tag or would we still expect a filtered list with less items?

avatar alikon
alikon - comment - 26 Aug 2024

ok tags are a big mess, we can all agree

this pr fix a "common sense" behavior
not more not less

avatar MacJoom MacJoom - change - 3 Sep 2024
Labels Added: RTC Information Required PR-4.4-dev
avatar laoneo laoneo - change - 12 Sep 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-09-12 12:56:27
Closed_By laoneo
avatar laoneo laoneo - close - 12 Sep 2024
avatar laoneo laoneo - merge - 12 Sep 2024
avatar laoneo
laoneo - comment - 12 Sep 2024

This really needs to be fixed, so I merged it. Thanks for the contribution.

Add a Comment

Login with GitHub to post a comment