No Code Attached Yet PBF bug
avatar chmst
chmst
24 Jul 2023

Steps to reproduce the issue

Make a custom field and enter some string into the field for attributes.
It is not clear how such a showon attribute should look like and you can enter whatever.

grafik

Expected result

An error message or ignoring the input if it does not meet the required pattern.

Actual result

grafik

System information (as much as possible)

php 8.2, joomla 5.0.0 dev

Additional comments

It would help to add an example for a correct showon Attribute to the description.

avatar chmst chmst - open - 24 Jul 2023
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Jul 2023
avatar chmst chmst - change - 24 Jul 2023
Labels Added: bug
avatar chmst chmst - labeled - 24 Jul 2023
avatar chmst chmst - change - 24 Jul 2023
Title
[5.0] deprecated warning if the showon attribute does not match the pattern
[5.0] deprecated warning if the showon attribute in a custom field does not match the pattern
avatar chmst chmst - edited - 24 Jul 2023
avatar chmst
chmst - comment - 24 Jul 2023

Related #41104

avatar brianteeman
brianteeman - comment - 24 Jul 2023

I made the same mistake the other day. The syntax is the same as when it is used in an xml file. so it is fieldname:value

avatar chmst
chmst - comment - 24 Jul 2023

I know the syntax in xml files ( I am good with copy / paste :) ) - but who knows what users will enter?

avatar brianteeman
brianteeman - comment - 24 Jul 2023

add it to the help or the description then - seems an appropriate use

avatar Hackwar Hackwar - change - 25 Aug 2023
Labels Added: PBF
avatar Hackwar Hackwar - labeled - 25 Aug 2023
avatar alikon alikon - close - 26 Aug 2023
avatar alikon
alikon - comment - 26 Aug 2023

closing as we have a pr #41460
please test #41460

avatar alikon alikon - change - 26 Aug 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-08-26 10:34:55
Closed_By alikon

Add a Comment

Login with GitHub to post a comment