- π¨π¦Canada shaundychko
Re-rolled to support 3.0.0-beta5. Submitting a patch or MR for the 4.x branch is a remaining task.
When there are no votes for an entity the token replacement triggers the error
Notice: Undefined index: vote in votingapi_tokens_tokens() (line 74 of modules/custom/votingapi_tokens/votingapi_tokens.tokens.inc).
The attached patch returns NULL
for the token replacement when votes have not been cast.
This issue was first pointed out in
https://www.drupal.org/project/votingapi/issues/2961079#comment-13430073 β
Needs work
4.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Re-rolled to support 3.0.0-beta5. Submitting a patch or MR for the 4.x branch is a remaining task.