Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field groupredlist : validate="options" doesn't work with groupredlist (only with list) #44109

Open
fuscage opened this issue Sep 18, 2024 · 0 comments

Comments

@fuscage
Copy link

fuscage commented Sep 18, 2024

Steps to reproduce the issue

Go to the /administrator/components/com_content/forms/article.xml file
Go the field state
Replace the type list to type="groupedlist"
Add group like this :

<field
			name="state"
	type="groupedlist"
			label="JSTATUS"
			class="form-select-color-state"
			default="1"
			validate="options"
			>
	<group label="GRP1">
				<option value="1">JPUBLISHED</option>
				<option value="0">JUNPUBLISHED</option>
	</group>
	<group label="GRP2">
				<option value="2">JARCHIVED</option>
				<option value="-2">JTRASHED</option>
	</group>
</field>

Result will be :
image

Try to save a content

Expected result

Save the content without error/warning

Actual result

warning : Champ invalide: Statut

image

System information (as much as possible)

joomla 4.4.6

Additional comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants