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).

CommentFileSizeAuthor
#3 social_link_field-3060202-3.patch732 bytesDrupalZone
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Romixua created an issue. See original summary.

sumit-k’s picture

Hi Romixua,

Can you mention which version of drupal you are using ?

DrupalZone’s picture

Status: Active » Needs review
FileSize
732 bytes

I got the same error, Resolved using attached patch.

DrupalZone’s picture

krina.addweb’s picture

@DrupalZone, Could you please provide the steps to replicate? as I tried but unable to receive the Error.

Hope you will help!

Thanks

Romixua’s picture

Hi bsumit5577,
I used 8.6.15 version fo drupal core and 1.x-dev version of this module.

Romixua’s picture

I think we need select Instagram item to get this error

sumit-k’s picture

Replicate the error on selecting instagram, checked with @DrupalZone patch.seems fine.

dmytro_yarish’s picture

Status: Needs review » Reviewed & tested by the community

The patch applies and resolves the issue.

  • Romixua committed 112ea2b on 8.x-1.x authored by DrupalZone
    Issue #3060202 by DrupalZone, Romixua, bsumit5577, krina.addweb,...
Romixua’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.