- Issue created by @joachim
- π¬π§United Kingdom joachim
It looks like this is because date_occur_ui_menu_local_tasks_alter() doesn't consider that there could be two different occurrence fields on nodes, one on bundle A and one on bundle B:
foreach ($entity_types as $occur_field => $entity_type) { // Only convention, and there can be multiple reasons it's here. if ($entity = \Drupal::routeMatch()->getParameter($entity_type)) { break; } } if (empty($entity)) { return; }
This is grabbing the first $occur_field that's on nodes, even though it's the wrong one for the current bundle.
- Merge request !1Fixed crash when more than one date_occur_parent field is on an entity type. β (Merged) created by joachim
- Status changed to Needs review
4 months ago 11:21am 13 March 2024 - Status changed to Fixed
4 months ago 5:40pm 15 March 2024 - π³π±Netherlands ekes
Merged, along with a fix for π occurrence page crashes if there are more than one occurrence field on an entity type Active , should be safe to have multiple occurrence fields on different bundles of the same entity type.
Many thanks.
Automatically closed - issue fixed for 2 weeks with no activity.