mirror of
https://github.com/grocy/grocy.git
synced 2025-09-01 18:57:34 +00:00
Fixed that meal plan week costs were missing for weeks 1 - 9
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
### Meal plan fixes
|
||||
- Fixed that when `FEATURE_FLAG_STOCK_PRICE_TRACKING` was set to `false`, prices were still shown (thanks @kriddles)
|
||||
- Fixed that the week costs were missing for the weeks 1 - 9 of a year
|
||||
|
||||
### Calendar improvements
|
||||
- Improved that meal plan events in the iCal calendar export now contain a link to the appropriate meal plan week in the body of the event (thanks @kriddles)
|
||||
|
@@ -31,9 +31,9 @@ var calendar = $("#calendar").fullCalendar({
|
||||
|
||||
$(".fc-day-header").append('<a class="ml-1 btn btn-outline-dark btn-xs my-1 add-recipe-button" href="#"><i class="fas fa-plus"></i></a>');
|
||||
|
||||
var weekRecipeName = view.start.year().toString() + "-" + (view.start.week() - 1).toString();
|
||||
var weekRecipeName = view.start.year().toString() + "-" + ((view.start.week() - 1).toString().padStart(2, "0")).toString();
|
||||
var weekRecipe = FindObjectInArrayByPropertyValue(internalRecipes, "name", weekRecipeName);
|
||||
|
||||
|
||||
var weekCosts = 0;
|
||||
var weekRecipeOrderMissingButtonHtml = "";
|
||||
var weekRecipeConsumeButtonHtml = "";
|
||||
|
Reference in New Issue
Block a user