Feature RTC NPM Resource Changed PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar LadySolveig
LadySolveig
24 Jul 2024

Pull Request for Issue #42381.

Summary of Changes

At the moment showon fields doesn't work in combination with global options.

The changes introduce a new data-attribute 'data-global' in select option if useglobal in ListField is set to true and adds support in showon script.

Testing Instructions

Run npm install

Set Global Configuration -> Contacts: Options -> Tab: Contact Information --> Show

Open a contact in edit mode or add a new contact.

Set Contacts: Edit -> Tab: Display -> Contact Information --> Use Global (Show)

Actual result BEFORE applying this Pull Request

Showon will be ignored and the additional fields are not visible.

grafik

Additional fields are only available after explicitly setting the option to show

grafik

Expected result AFTER applying this Pull Request

Works as expected and the fields are shown also with Use Global (Show)

grafik

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 LadySolveig LadySolveig - open - 24 Jul 2024
avatar LadySolveig LadySolveig - change - 24 Jul 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jul 2024
Category JavaScript Repository NPM Change Libraries
avatar LadySolveig
LadySolveig - comment - 24 Jul 2024

Would be nice if you could have a look at this fix @Fedik @dgrammatiko ?

avatar dgrammatiko
dgrammatiko - comment - 24 Jul 2024

LGTM

avatar LadySolveig LadySolveig - change - 24 Jul 2024
Labels Added: NPM Resource Changed PR-5.2-dev
avatar Fedik
Fedik - comment - 24 Jul 2024

In general I am not a big fan of this "global hack" that we have, because it is a hack on the hack.

But the PR looks good, if it works ?

avatar LadySolveig
LadySolveig - comment - 24 Jul 2024

@Fedik I absolutely agree with you, but if I have the choice, I'd rather have a hack on the hack that works than one that promises more than it can deliver ?

avatar exlemor exlemor - test_item - 24 Jul 2024 - Tested successfully
avatar exlemor
exlemor - comment - 24 Jul 2024

I have tested this item ✅ successfully on df7232c

I was able to test this successfully with the help of Martina. (thanks Martina).


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

avatar richard67 richard67 - alter_testresult - 24 Jul 2024 - exlemor: Tested successfully
avatar LadySolveig LadySolveig - alter_testresult - 24 Jul 2024 - exlemor: Tested successfully
avatar chmst chmst - test_item - 24 Jul 2024 - Tested successfully
avatar chmst
chmst - comment - 24 Jul 2024

I have tested this item ✅ successfully on 005d060

From usability point of view the whole concept of "use global" should be improved, but this is not in scope.
And the PR resolves the issue - thank you!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43842.
avatar chmst chmst - change - 24 Jul 2024
Status Pending Ready to Commit
avatar chmst
chmst - comment - 24 Jul 2024

RTC


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

avatar Hackwar Hackwar - change - 26 Jul 2024
Labels Added: Feature RTC
avatar Hackwar
Hackwar - comment - 26 Jul 2024

Thank you for this contribution @LadySolveig!

avatar Hackwar Hackwar - change - 26 Jul 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-07-26 18:47:14
Closed_By Hackwar
avatar Hackwar Hackwar - close - 26 Jul 2024
avatar Hackwar Hackwar - merge - 26 Jul 2024

Add a Comment

Login with GitHub to post a comment