Skip to content

[5.4] Fix backend com_fields field list menu item#46052

Merged
muhme merged 3 commits intojoomla:5.4-devfrom
SniperSister:54-fields-menuitem
Sep 11, 2025
Merged

[5.4] Fix backend com_fields field list menu item#46052
muhme merged 3 commits intojoomla:5.4-devfrom
SniperSister:54-fields-menuitem

Conversation

@SniperSister
Copy link
Contributor

@SniperSister SniperSister commented Sep 9, 2025

Summary of Changes

The "list of fields" menu item of com_fields for custom backend menus was using the wrong request parameter. That prevented ACL checks from running, resulting in the fact that a menu item could be created but was never shown.

Furthermore, the context name wasn't correctly set. In example instead of "com_content.article" (singular!) "com_content.articles" (plural) was used, as the context name was derived from the human readable label.

Testing Instructions

  • Create a custom field for articles
  • Create a custom backend menu
  • Create a "List all Fields" menu item for com_fields in that backend menu, select "Articles - Articles" as context
  • Test BEFORE condition
  • Apply patch
  • Open the menu item settings, re-select "Articles - Articles"
  • Save
  • Test AFTER condition

Actual result BEFORE applying this Pull Request

Menu item is not shown

Expected result AFTER applying this Pull Request

Menu item is shown, Field is shown

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

@richard67 richard67 added the bug label Sep 9, 2025
@richard67
Copy link
Member

@SniperSister Any reason why not to fix it in 5.3-dev?

@SniperSister
Copy link
Contributor Author

@richard67 remaining lifetime of the branch, however i'm also fine with rebasing

@richard67
Copy link
Member

@SniperSister No, it's ok. Just wanted to know if there is some other reason.

@exlemor
Copy link

exlemor commented Sep 10, 2025

@SniperSister - I either didn't understand your testing instructions or something is not 100% working - can't replicate the BEFORE issue and the AFTER situation is the same as in the BEFORE position. ( I apologize if I messed something up).

@SniperSister
Copy link
Contributor Author

@exlemor If you create a custom backend menu item of type "List all Fields" for articles fields, that field is shown in the custom admin menu (so in the menu sidebar, not the management list view!)?

@brianteeman
Copy link
Contributor

Tested and can confirm the bug but after applying the PR the menu is still not displayed

image

@brianteeman
Copy link
Contributor

I have tested this item 🔴 unsuccessfully on 6aeab52


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

@SniperSister
Copy link
Contributor Author

@brianteeman have you updated the menu item after applying the patch? Otherwise the invalid request parameters remain stored in the DB and the menu item will not be shown.

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 6aeab52


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

@brianteeman
Copy link
Contributor

Had to recreate the menu after the pr


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

@richard67
Copy link
Member

Otherwise the invalid request parameters remain stored in the DB and the menu item will not be shown.

Would it be possible to fix that on update with a fancy SQL update? (If yes we can do that with a separate PR).

@SniperSister
Copy link
Contributor Author

Would it be possible to fix that on update with a fancy SQL update? (If yes we can do that with a separate PR).

It would be possible yes - on the other hand: these items would have never shown up in the past, so I sort of question if anyone has actually used those items in real world because i haven't seen any issues raised about it. So: probably not worth the effort.

@brianteeman
Copy link
Contributor

You could have the menu item from a preset but that worked as the presets have the link hard coded.

There is another bug with the preset but I will submit a pr shortly for that.

@richard67
Copy link
Member

these items would have never shown up in the past

I see. So better no fix in update for these. People could report it as bug if these items suddenly appear.

@richard67
Copy link
Member

I have tested this item ✅ successfully on 6aeab52


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

@richard67 richard67 changed the title [5.4] Fix backend com_fields field list menu item [5.4] Fix backend com_fields field list menu item Sep 10, 2025
@richard67 richard67 removed the bug label Sep 10, 2025
@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 10, 2025
@richard67 richard67 added the bug label Sep 10, 2025
@muhme
Copy link
Contributor

muhme commented Sep 11, 2025

Final test before merge with JBT graft:

  • Problem seen with nightly build (added a second menu item to ensure the menu is shown)
  • ✅ Fix seen with PRs full package and additionally tested that the list of all fields also works for users
  • ⚠️ Additional tested 'List All Field Groups' failed for articles and users, menu entries are not shown -> created [5.4] Backend menu entries 'List All Field Groups' are not shown #46069
  • ✅ Checked administrator/logs/* including PHP log

@muhme muhme merged commit a93fee9 into joomla:5.4-dev Sep 11, 2025
40 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 11, 2025
@muhme muhme added this to the Joomla! 5.4.0 milestone Sep 11, 2025
@muhme
Copy link
Contributor

muhme commented Sep 11, 2025

Thank you @SniperSister for your contribution. Thank you @brianteeman, @richard67 and @exlemor for testing.

dgrammatiko pushed a commit to dgrammatiko/joomla-cms that referenced this pull request Jan 25, 2026
* fix the request parameter of the backend field list menu item
* fix context names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants