Fixed meal plan product/note calendar items links (fixes #1897)

This commit is contained in:
Bernd Bestel
2022-05-23 22:28:45 +02:00
parent af7de61c43
commit dfdf45fa56
2 changed files with 5 additions and 3 deletions

View File

@@ -154,7 +154,8 @@ class CalendarService extends BaseService
$mealPlanNotesEvents[] = [
'title' => $titlePrefix . $titlePrefix2 . $mealPlanDayNote->note,
'start' => $start,
'date_format' => $dateFormat
'date_format' => $dateFormat,
'link' => $this->UrlManager->ConstructUrl('/mealplan' . '?start=' . $start)
];
}
@@ -181,7 +182,8 @@ class CalendarService extends BaseService
$mealPlanProductEvents[] = [
'title' => $titlePrefix . $titlePrefix2 . FindObjectInArrayByPropertyValue($products, 'id', $mealPlanDayProduct->product_id)->name,
'start' => $start,
'date_format' => $dateFormat
'date_format' => $dateFormat,
'link' => $this->UrlManager->ConstructUrl('/mealplan' . '?start=' . $start)
];
}
}