I've successfully enabled the add to calendar module in my drupal site, but I'm having issues with the settings. When I change the "description" field to direct to the "body," I get this error:

Notice: Only variables should be passed by reference in _addtocalendar_preprocess_field() (line 100 of modules/contrib/addtocalendar/includes/addtocalendar.build.inc).

Changing the field back to "Use token/static content" eliminates the error.

Comments

katyleedy created an issue. See original summary.

a.boutakaoua’s picture

Status: Active » Needs review
StatusFileSize
new680 bytes

Here's the patch to fix this issue

komlenic’s picture

Status: Needs review » Reviewed & tested by the community

Confirming that this patch fixes the issue.

sergiuteaca’s picture

+1 for RTBC

austin_brian’s picture

Confirming that this patch in #2 fixes the issue on my site.

gg24’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

This issue is the duplicate of https://www.drupal.org/project/addtocalendar/issues/2929782. Hence closing this issue. But thanks for creating patch and the reviews. The issue fix is present in 8.x-3.x branch.