User tests: Successful: Unsuccessful:
Pull Request for Issue introduced in #18032 .
Test custom fields, especially menuitem
see #38244 (comment)
works
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields Front End Plugins |
I have tested this item
Works with menuitem and other custom fields.
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
?
|
Looks good to me, just wondering why this custom field can't have a default value.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-09 07:19:23 |
Closed_By | ⇒ | roland-d | |
Labels |
Added:
Release Blocker
|
Thank you
Looks good to me, just wondering why this custom field can't have a default value.
I was wondering too, I only had a quick look while fixing it. It happens here:
https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Form/Field/GroupedlistField.php#L134
but to me that doesn't make any sense on the first glance because I would expect that the default_value is an attribute and not an element.
But since I found the issue in the default_value === ''
check I fixed this one since maybe other fields have this problem too.
If someone wants to have a look at GroupedlistField he or she is welcome to do it.
I have tested this item✅ successfully on 51ea6ce
Works as expected with the menuitem field.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38426.