PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar Chitrakshi180706
Chitrakshi180706
28 Mar 2026

Pull Request resolves #47335 .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

When 'Use Global' is selected for Image Class in the Articles
module, the global value was not being applied to the figure tag.
The code was checking if float_intro was empty, but 'Use Global'
is not empty — it's a literal string. Fixed by also checking if
the value equals 'Use Global' and fetching the actual global
value in that case.

Testing Instructions

  1. Set a default Image Class in Articles e.g. "image-intro"
  2. Use the Articles site module
  3. Set Image Class to "Use Global"
  4. Check the HTML output
  5. Figure tag should now include the global image class

Actual result BEFORE applying this Pull Request

(global image class missing)

Expected result AFTER applying this Pull Request

(global image class applied correctly)

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • [✅] No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • [✅] No documentation changes for manual.joomla.org needed

avatar Chitrakshi180706 Chitrakshi180706 - open - 28 Mar 2026
avatar Chitrakshi180706 Chitrakshi180706 - change - 28 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2026
Category Repository Administration com_admin SQL
avatar brianteeman
brianteeman - comment - 28 Mar 2026

Your branch is 6.1 but you are trying to merge it into 5.4

And you must complete the ai check confirmation

avatar Chitrakshi180706 Chitrakshi180706 - change - 28 Mar 2026
The description was changed
avatar Chitrakshi180706 Chitrakshi180706 - edited - 28 Mar 2026
avatar Chitrakshi180706 Chitrakshi180706 - change - 28 Mar 2026
Labels Added: PR-5.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2026
Category Repository Administration com_admin SQL Layout
avatar Chitrakshi180706
Chitrakshi180706 - comment - 28 Mar 2026

Thank you for the feedback @brianteeman!

I have updated the base branch to 6.1-dev and confirmed
the AI policy check. Sorry for the confusion!

avatar richard67 richard67 - change - 26 Apr 2026
Labels Added: PR-6.1-dev
Removed: PR-5.4-dev
avatar BeginnerJoomlaCom BeginnerJoomlaCom - test_item - 28 Apr 2026 - Tested unsuccessfully
avatar BeginnerJoomlaCom
BeginnerJoomlaCom - comment - 28 Apr 2026

I have tested this item 🔴 unsuccessfully on 88533a7

Same behaviour using Pull Request.


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

avatar BeginnerJoomlaCom
BeginnerJoomlaCom - comment - 28 Apr 2026

I have tested this item 🔴 unsuccessfully on 88533a7

Same behaviour using Pull Request.


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

avatar cybersalt cybersalt - test_item - 30 Apr 2026 - Tested unsuccessfully
avatar cybersalt
cybersalt - comment - 30 Apr 2026

I have tested this item 🔴 unsuccessfully on 88533a7

Cannot find anywhere to "Set Image Class" anywhere in the article module.


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

avatar cybersalt
cybersalt - comment - 30 Apr 2026

I have tested this item 🔴 unsuccessfully on 88533a7

Cannot find anywhere to "Set Image Class" anywhere in the article module.


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

avatar exlemor
exlemor - comment - 30 Apr 2026

@Chitrakshi180706 - Hi Chitrakshi, thank you so much for your contribution and proposal of this PR to fix Issue 47335 unfortunately, we could NOT find the Image Class in the Articles Module.

avatar brianteeman
brianteeman - comment - 30 Apr 2026

@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class

image

In an article you will see that you can either use that global setting or change it for that article

image

However when the article is displayed in a module this image class (either custom or global) is not used.

Having said all of that

  1. I am not sure that you would want to use the image class of the article when its displayed in a module
  2. This PR doesnt change anything
avatar brianteeman
brianteeman - comment - 30 Apr 2026

@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class

image

In an article you will see that you can either use that global setting or change it for that article

image

However when the article is displayed in a module this image class (either custom or global) is not used.

Having said all of that

  1. I am not sure that you would want to use the image class of the article when its displayed in a module
    2. This PR doesnt change anything
avatar brianteeman
brianteeman - comment - 30 Apr 2026

@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class

image

In an article you will see that you can either use that global setting or change it for that article

image

However when the article is displayed in a module this image class (either custom or global) is not used.

Having said all of that

  1. I am not sure that you would want to use the image class of the article when its displayed in a module
  2. This PR does add the image class when it is defined but does not add the global value when it is not defined
avatar brianteeman
brianteeman - comment - 30 Apr 2026

@cybersalt @exlemor you misunderstood. There is a setting for the articles component to set the default image class

image

In an article you will see that you can either use that global setting or change it for that article

image

However when the article is displayed in a module this image class (either custom or global) is not used.

Having said all of that

  1. I am not sure that you would want to use the image class of the article when its displayed in a module
  2. This PR does not change anything

Add a Comment

Login with GitHub to post a comment