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).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

othermachines created an issue. See original summary.

othermachines’s picture

Project: Date » Calendar
Status: Active » Needs review

Whups - wrong project.

othermachines’s picture

Not 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.

hershey.k’s picture

The above patch fixed the issue for me. Thanks @othermachines!

othermachines’s picture

Status: Needs review » Reviewed & tested by the community

You're welcome! Moving to RTBC...

solide-echt’s picture

Hi,

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.

joelpittet’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)
Neslee Canil Pinto’s picture

Status: Postponed (maintainer needs more info) » Fixed

Tested this has, this has been fixed in the latest branch. Marking as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.