[5.0] Filter values of custom field, fix #42259#42285
[5.0] Filter values of custom field, fix #42259#42285HLeithner merged 3 commits intojoomla:5.0-devfrom
Conversation
|
The com_patchtester_4.3.1 doesn't seem to work in J5 so I can't test this. The error message message says: An error has occurred while fetching the data from GitHub. Error inserting pull request data into the database: Incorrect string value: '\xF0\x9F\xA5\x87 )...' for column |
|
No Problem using Patchtester 4.3.1 in J5. |
Can you confirm what needs to be checked/ticked when I get an access token? Is it just the default that the link from the Patchtester checks? I've installed it on a brand new installation of J5 on a brand new subdomain on a new database. I uninstalled it, logged out, logged back in and installed it again. Same result. |
|
All those settings in Joomla are correct. What I meant was, what do I check/tick when I request an authentication token on Github at github.com/settings/tokens? I tried on another test site that had been updated from 4.4.0 to 5.0. Same result. It has public_repo, repo:status selected at the moment. |
|
I have tested this item ✅ successfully on 4143e6b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42285. |
|
@Scrabble96 can you please test this pr, simple use the prebuilt packages from https://artifacts.joomla.org/drone/joomla/joomla-cms/5.0-dev/42285/downloads/71682 |
|
@Fedik And if you just return the value from the array when checking. $value = array_filter($value, function ($v) {
return $v;
});or $value = array_filter($value, fn ($v) => $v); |
|
@korenevskiy nope, what will hapen when value is |
You right! |
|
I have tested this item ✅ successfully on 4143e6b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42285. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42285. |
|
thanks |
|
Do we need this Fix in 4.4 as well? |
|
No because we changed the plugin trigger code in 5.0 which leads to this issue. |
|
ah ok - understand , thanks |
Hi @HLeithner - I've just got around to testing this. It works fine. Thank you all for fixing and testing this. |
|
@laoneo please check my previous comment #42285 (comment) |
|
Thanks for the info |
|
Silly question, perhaps, but can whatever was done to change it from J4.4.0 to J.5.0 just be reversed, rather than adding yet more code? |
|
We have updated old events APi to new 😉 |




Pull Request for Issue #42259 .
Summary of Changes
Filter field value after onCustomFieldsPrepareField
Testing Instructions
Please follow #42259
Create a Text field,
Save it,
And check the field rendering in the layout override.
Or use
dump($this->item->jcfields);to see the field->valueActual result BEFORE applying this Pull Request
Value contain an empty space
Expected result AFTER applying this Pull Request
Value is empty
Link to documentations
Please select:
Reference: