Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am trying out Linkit for Drupal 8 (A clean install of 8.0.0 without any other modules) & I found an issue when selecting a Content matcher, I received the following error:
Notice: Undefined index: description in Drupal\linkit\Plugin\Linkit\Matcher\EntityMatcher->insertTokenList() (line 38 of modules/contrib/linkit/src/MatcherTokensTrait.php).
After debugging the code I noticed the following token values do not have a description:
- Content Type.
- Title
- Date Created.
- Author.
Due to this I have created a patch, which checks to see if there is a description first.
Thank you,
Comment | File | Size | Author |
---|---|---|---|
#2 | token_description_missing-2626442-1.patch | 690 bytes | i_g_wright |
Comments
Comment #2
i_g_wright CreditAttribution: i_g_wright commentedComment #4
anonThanks for the patch, good work.
I have committed this now.
Comment #7
anon