Closed (fixed)
Project:
Field Delimiter (Multi Value Field Formatter)
Version:
2.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Aug 2022 at 18:57 UTC
Updated:
17 Mar 2025 at 16:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cilefen commentedHi: those are deprecation warnings, not errors. These warnings must be addressed but do not affect code operation.
Comment #3
Christopher Riley commentedI beg to differ as it seems to be preventing me from being able to adjust a table field that I have within a paragraph. As soon as I disable the module the issue goes away.
Suggestions?
Comment #4
Christopher Riley commentedI did a big of digging and I think that this is because I have a unique setup. As I mentioned this is within a Paragraph and Within a Field Group.
When I have the modules enabled and it is running into a NULL return from the call
$setting = $plugin->getThirdPartySetting('field_delimiter', 'delimiter');
within the field_delimiter_field_formatter_third_party_settings_form function.
I think a simple test to validate the field that is being called is a legit form field would be sufficient.
What do you think?
Comment #5
Christopher Riley commentedI went ahead and rolled a patch for this issue in case you decide to use it.
Comment #6
joelseguinThanks @Christopher Riley for the patch. I've applied to one of my sites and it definitely addresses the deprecation warnings (which was quite a lot of unnecessary scrolling when doing site building tasks).
Comment #7
avpadernoComment #8
avpadernoIt should use short array syntax, as the currently used code. (That is also what the Drupal coding standards suggest to use, if I correctly recall.)
I would also use
isset($setting) ? Xss::filter($setting, ['br', 'hr', 'span', 'img', 'wbr']) : ''which avoids to use a negation.Comment #9
pflora commentedHere's a patch with the requested changes from #8! Moving this to NR.
Comment #10
avpadernoThe last patch changes the code as suggested.
Comment #11
dunebl+1 RTBC
Comment #12
a.sotirov commented+1 RTBC
It works on my site with Drupal Core 9.5.3 and php 8.1.
Comment #14
urvashi_vora commentedReviewed and tested the patch #9, works well for me as well.
LGTM, RTBC++
Committing the changes for helping the maintainer.
Comment #16
yevko commented+ LGTM
Comment #17
claudiu.cristeaThere's already a 2.0.x branch
Comment #18
avpadernoComment #19
solideogloria commentedPatch #9 applies correctly to 2.x-dev. No reroll is required.
Comment #20
j_s commentedPatch #9 worked well! Thanks!
Comment #21
phannphong commentedI can confirm that the patch #9 works like a charm. Thank you!
Comment #22
avpadernoThe merge request is not for the 2.x branch. That is why the Needs reroll tag was added.
Comment #23
avpadernoComment #25
pcambraMerged into 2.x, thanks all!