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

SQL field default value validation always fails #29565

Closed
brbrbr opened this issue Jun 10, 2020 · 1 comment
Closed

SQL field default value validation always fails #29565

brbrbr opened this issue Jun 10, 2020 · 1 comment

Comments

@brbrbr
Copy link

brbrbr commented Jun 10, 2020

Steps to reproduce the issue

Create a new field 'sql'
add query
(SELECT id as value, title as text FROM #__categories where extension = 'com_content' and published = 1) union (SELECT 0 as value,'Empty' as text)

add valid default value, in this case existing category or 0

save

Expected result

Successful save

Actual result

Save failed with the following error: The default value is invalid.

Additional comments

@joomdonation
Copy link
Contributor

PR #39355 should address this issue. Unfortunately, Joomla 3 does not receive regular bugs fixes on anymore, so we can only have this issue fixed for Joomla 4. Please help testing . Thanks !

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

3 participants