Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I've getting these notices whenever I output an iCal feed using Date iCal:
Notice: Undefined index: add_microdata in theme_date_display_single() (line 264 of /drupal_testing/sites/all/modules/date/date.theme).
Notice: Undefined index: add_microdata in template_preprocess_date_display_single() (line 222 of /drupal_testing/sites/all/modules/date/date.theme).
They only appeared when I updated Date to the newest dev build. I'm guessing that this is something to do with new settings added with this new version, but which aren't saved in my existing View.
Fortunately, the fix I found is fairly simple, and I'm pretty sure it doesn't undermine any existing functionality. I'll attach my patch to comment #1.
Comment | File | Size | Author |
---|---|---|---|
#1 | date-fix_microdata_theme-2115377-1.patch | 1.05 KB | coredumperror |
Comments
Comment #1
coredumperror CreditAttribution: coredumperror commentedHere's the patch. It just wraps the uses of
$variables['add_microdata']
with!empty()
checks.Comment #2
coredumperror CreditAttribution: coredumperror commentedComment #3
cafuego CreditAttribution: cafuego commentedVery straightforward fix, committed.
Comment #5
dmsmidtLooks like this never was committed.
Patch works.
Comment #6
cafuego CreditAttribution: cafuego commentedOoopsie! Definitely committed now :-)