From c742bfeeecfb6630348634c1eb6f6e04084e7d8b Mon Sep 17 00:00:00 2001 From: Kurt Riddlesperger Date: Mon, 30 Sep 2019 12:12:06 -0500 Subject: [PATCH] services CalendarService: include link to mealplan in calendar descriptions --- services/CalendarService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/CalendarService.php b/services/CalendarService.php index 8f05e2eb..0af223d1 100644 --- a/services/CalendarService.php +++ b/services/CalendarService.php @@ -99,7 +99,8 @@ class CalendarService extends BaseService $mealPlanRecipeEvents[] = array( 'title' => $titlePrefix . FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->includes_recipe_id)->name, 'start' => FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->recipe_id)->name, - 'date_format' => 'date' + 'date_format' => 'date', + 'description' => GROCY_BASE_URL . '/mealplan' . '?week=' . FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->recipe_id)->name ); } }