bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar MacJoom
MacJoom
21 Oct 2022

Pull Request for Issue #10140 and #40996

Summary of Changes

  • Put keywords in a UserState variable com_content.articles.keywords
  • Use UserState variable to get the keywords from the articles

Testing Instructions taken from #10140

-Create a banner, including some keywords (see publishing).
-Create a banner module an setup the option "Search by Meta Keyword" to "YES".
-Activate the module in any position let's say "banner" on Cassiopeia template
-Disable the cache for the banners module and save.

-Create a Content article and setup some keywords (see publishing) which will be used to display the banner accordingly.

  • Test with Client set - seems to work only with client set

Actual result BEFORE applying this Pull Request

No banners shown

Expected result AFTER applying this Pull Request

Banners shown, acording to keywords

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 MacJoom MacJoom - open - 21 Oct 2022
avatar MacJoom MacJoom - change - 21 Oct 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Oct 2022
Category Front End com_banners com_content Modules
avatar MacJoom MacJoom - change - 21 Oct 2022
Labels Added: ?
avatar MacJoom MacJoom - change - 21 Oct 2022
The description was changed
avatar MacJoom MacJoom - edited - 21 Oct 2022
avatar joomla-cms-bot joomla-cms-bot - change - 21 Oct 2022
Category Front End com_banners com_content Modules Front End com_banners com_content Libraries Modules
avatar richard67
richard67 - comment - 21 Oct 2022

@MacJoom Could you fix the code style errors reported in the following log? https://ci.joomla.org/joomla/joomla-cms/58794/1/6 . Thanks in advance.

avatar MacJoom
MacJoom - comment - 28 Oct 2022

I use an UserState variable to preserve to article.ids i need. This works, but is not very clean. I would rather like to enable $documents to use stateVariables, simply by including the 'StateBehaviorTrait' in the document class and then use $document->getState - what do you think?

avatar MacJoom MacJoom - change - 24 Mar 2023
Labels Added: PR-4.3-dev
Removed: ?
avatar MacJoom MacJoom - change - 19 Jun 2023
Labels Added: bug
avatar MacJoom MacJoom - change - 22 Jun 2023
The description was changed
avatar MacJoom MacJoom - edited - 22 Jun 2023
avatar MacJoom MacJoom - change - 23 Jun 2023
Title
Bugfix for Issue #10140 - Banner Modules using 'Select by keywords' set to 'Yes'
Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
avatar MacJoom MacJoom - edited - 23 Jun 2023
avatar HLeithner
HLeithner - comment - 30 Sep 2023

This pull request has been automatically rebased to 4.4-dev.

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
[4.4] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar HLeithner
HLeithner - comment - 15 Nov 2024

This pull request has been automatically rebased to 5.2-dev.

avatar HLeithner HLeithner - change - 15 Nov 2024
Title
[4.4] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
[5.2] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
avatar HLeithner HLeithner - edited - 15 Nov 2024
avatar Hackwar
Hackwar - comment - 16 Jan 2025

can you please fix the conflicts and decide if this is ready?

avatar chaitali-tekdi chaitali-tekdi - test_item - 22 Feb 2025 - Tested unsuccessfully
avatar chaitali-tekdi
chaitali-tekdi - comment - 22 Feb 2025

I have tested this item 🔴 unsuccessfully on 9936619

I have faced this issue when i click on apply patch but the patch could not be applied because it conflicts with a previously applied patch: components/com_banners/src/Model/BannersModel.php


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

avatar fgsw
fgsw - comment - 22 Feb 2025

@chaitali-tekdi This branch has conflicts that must be resolved. So a test doesn't make sense at this time. You can find the information at the end of the github-page of the Pull Request:
Untitled
Also notice that the PR is a draft.

avatar HLeithner
HLeithner - comment - 15 Apr 2025

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 15 Apr 2025
Title
[5.2] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
[5.3] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
avatar HLeithner HLeithner - edited - 15 Apr 2025
avatar HLeithner
HLeithner - comment - 15 Oct 2025

This pull request has been automatically rebased to 5.4-dev.

avatar richard67 richard67 - change - 2 Nov 2025
Labels Added: PR-5.3-dev
Removed: PR-4.3-dev
avatar richard67 richard67 - change - 2 Nov 2025
Title
[5.3] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
[5.4] Bugfix for Issue #10140 and #40996 - Banner Modules using 'Select by keywords' set to 'Yes'
avatar richard67 richard67 - edited - 2 Nov 2025
avatar richard67
richard67 - comment - 2 Nov 2025

I've allowed myself to fix the conflicts. But system tests are failing, and I think it is related to this PR.

 Running:  site/modules/mod_banners/Default.cy.js                                       (86 of 148)

  Test in frontend that the banner module
    1) can display banners

  0 passing (388ms)
  1 failing

  1) Test in frontend that the banner module
       can display banners:
     CypressError: `cy.visit()` failed trying to load:

https://localhost/cmaria/

The response we received from your web server was:

  > 500: Internal Server Error

This was considered a failure because the status code was not `2xx`.
avatar muhme
muhme - comment - 8 Jun 2026

Dear @MacJoom, could you please check this draft PR? Continue working on it and prepare it for review, or close it if it is no longer being pursued? thx

avatar richard67 richard67 - change - 8 Jun 2026
Labels Added: PR-5.4-dev
Removed: PR-5.3-dev
avatar MacJoom
MacJoom - comment - 8 Jun 2026

Years later i have a different approach to fix this... will work on it.

avatar MacJoom MacJoom - change - 8 Jun 2026
The description was changed
avatar MacJoom MacJoom - edited - 8 Jun 2026
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2026
Category Front End com_banners com_content Modules Libraries Front End com_banners com_content Modules

Add a Comment

Login with GitHub to post a comment