Steps to reproduce:
1) Open field formatter settings
2) Change "Select icon type" input to "Square icon"
3) Save settings
4) Open entity where you use this field and you will get this notice:
Notice: Undefined index: iconSquare in Drupal\social_link_field\Plugin\Field\FieldFormatter\SocialLinkFontAwesomeFormatter->viewElements() (line 78 of modules/contrib/social_link_field/src/Plugin/Field/FieldFormatter/SocialLinkFontAwesomeFormatter.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | social_link_field-3060202-3.patch | 732 bytes | DrupalZone |
Comments
Comment #2
sumit-k commentedHi Romixua,
Can you mention which version of drupal you are using ?
Comment #3
DrupalZone commentedI got the same error, Resolved using attached patch.
Comment #4
DrupalZone commentedComment #5
krina.addweb commented@DrupalZone, Could you please provide the steps to replicate? as I tried but unable to receive the Error.
Hope you will help!
Thanks
Comment #6
romixuaHi bsumit5577,
I used 8.6.15 version fo drupal core and 1.x-dev version of this module.
Comment #7
romixuaI think we need select Instagram item to get this error
Comment #8
sumit-k commentedReplicate the error on selecting instagram, checked with @DrupalZone patch.seems fine.
Comment #9
dmytro_yarish commentedThe patch applies and resolves the issue.
Comment #11
romixua