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.
After creating a new content type with field 'Date' (unlimited values), I created a view from template 'Content Field Date on Calendar' to display the data.
Editing the view, if I set "Maximum items" under Format > Settings to anything other 'Unlimited' it generates this error:
Notice: Undefined property: Drupal\calendar\CalendarEvent::$date_id in Drupal\calendar\Plugin\views\style\Calendar->calendarBuildWeekDay() (line 1041 of modules\calendar\src\Plugin\views\style\Calendar.php).
Comment | File | Size | Author |
---|---|---|---|
#3 | calendar-undefined_property_date_id-2876414-3.patch | 555 bytes | othermachines |
Comments
Comment #2
othermachines CreditAttribution: othermachines commentedWhups - wrong project.
Comment #3
othermachines CreditAttribution: othermachines commentedNot sure this is the right fix but it gets rid of the error. 'date_id' property is indeed set in entity object but is empty.
Comment #4
hershey.k CreditAttribution: hershey.k commentedThe above patch fixed the issue for me. Thanks @othermachines!
Comment #5
othermachines CreditAttribution: othermachines commentedYou're welcome! Moving to RTBC...
Comment #6
solide-echt CreditAttribution: solide-echt commentedHi,
thnx for your contribution. I've just released 8.x-1.0-alpha2 which combines a fairly large number of patches. In this I could not reproduce your issue. Could you check if it stil exists in alpha2?
Thanks.
Comment #7
joelpittetComment #8
Neslee Canil PintoTested this has, this has been fixed in the latest branch. Marking as fixed.