Closed (fixed)
Project:
Custom Field
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2024 at 09:14 UTC
Updated:
4 Apr 2024 at 18:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
abhishek_gupta1 commentedComment #3
abhishek_gupta1 commented@coaston , I have fixed the issue please review the patch file
Comment #6
manish-31 commented@abhishek_gupta1 Thanks for the patch!
Made one change : setting
defaultinstead ofNULLwhen view mode is not available in widget settings.I have raised MR for the fix. Needs review.
Comment #7
apmsooner commentedTheres actually a better fix for this and other related tickets that I will push up here in a bit. First off, this formatter needs to have default settings merged in with actual settings and then view_mode will always exist. The bigger underlying issue is in the base formatter as it needs to respond to field changes and serve the default formatter in case the already saved formatter doesn't relate to the field type. I will tag that issue in a separate ticket and link these up but this should resolve all formatter issues.
Comment #8
apmsooner commentedAddressed in this commit: https://git.drupalcode.org/project/custom_field/-/commit/bc7495df778829b.... You can test latest dev branch to confirm and reopen separate issue if you are still seeing problems but this should be resolved now with the default settings merged in.
Comment #9
apmsooner commented