Needs review
Project:
Mobile Number
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2019 at 07:57 UTC
Updated:
21 Sep 2021 at 17:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
namontague commentedThe reason this is happening is due to the default field formatter set in the field_info hook.
The formatter used does not exist and results in no field being displayed when viewing the content.
A walk around for this bug is to simply save the manage display page for the content type as this will now set the field formatter to one that exists (from the dropdown).
To fix the code you need to change the function mobile_number_field_info:
change the value set for "default_formatter" to "mobile_number_international".
'default_formatter' => 'mobile_number_international',
Once applied and cache is cleared the bug will be fixed.
Comment #3
mohit.bansal623 commented@namontague - Thanks for the solution. Creating a patch for the same.