mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Show the meal plan section for a meal plan entry types on the calendar (references #1582)
This commit is contained in:
parent
66cf7e4ffa
commit
411dbabc90
@ -79,5 +79,5 @@
|
||||
### API
|
||||
|
||||
- The API endpoint `/stock/shoppinglist/clear` has now a new optional request body parameter `done_only` (to only remove done items from the given shopping list, defaults to `false`)
|
||||
- The API endpoint `/chores/{choreId}/execute` has now a new optional request body parameter `skipped` (to skip the next chore schedule)
|
||||
- The API endpoint `/chores/{choreId}/execute` has now a new optional request body parameter `skipped` (to skip the next chore schedule, defaults to `false`)
|
||||
- Fixed that the barcode lookup for the "Stock by-barcode" API endpoints was case sensitive
|
||||
|
@ -144,8 +144,15 @@ class CalendarService extends BaseService
|
||||
$dateFormat = 'datetime';
|
||||
}
|
||||
|
||||
$titlePrefix2 = '';
|
||||
if (!empty($section->name))
|
||||
{
|
||||
$titlePrefix2 = $section->name . ': ';
|
||||
}
|
||||
|
||||
|
||||
$mealPlanNotesEvents[] = [
|
||||
'title' => $titlePrefix . $mealPlanDayNote->note,
|
||||
'title' => $titlePrefix . $titlePrefix2 . $mealPlanDayNote->note,
|
||||
'start' => $start,
|
||||
'date_format' => $dateFormat
|
||||
];
|
||||
@ -165,8 +172,14 @@ class CalendarService extends BaseService
|
||||
$dateFormat = 'datetime';
|
||||
}
|
||||
|
||||
$titlePrefix2 = '';
|
||||
if (!empty($section->name))
|
||||
{
|
||||
$titlePrefix2 = $section->name . ': ';
|
||||
}
|
||||
|
||||
$mealPlanProductEvents[] = [
|
||||
'title' => $titlePrefix . FindObjectInArrayByPropertyValue($products, 'id', $mealPlanDayProduct->product_id)->name,
|
||||
'title' => $titlePrefix . $titlePrefix2 . FindObjectInArrayByPropertyValue($products, 'id', $mealPlanDayProduct->product_id)->name,
|
||||
'start' => $start,
|
||||
'date_format' => $dateFormat
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user