From 8ba3305a21f1b3d3f99db848dce903588cd0cea1 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 24 Feb 2024 20:15:23 +0100 Subject: [PATCH] Default any add-to-shopping-list-actions to the default shopping list (closes #2472) --- public/viewjs/mealplan.js | 2 +- views/stockentries.blade.php | 2 +- views/stockjournal.blade.php | 2 +- views/stockoverview.blade.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js index 1e8f5cf6..1a8edb73 100644 --- a/public/viewjs/mealplan.js +++ b/public/viewjs/mealplan.js @@ -259,7 +259,7 @@ $(".calendar").each(function() var shoppingListButtonHtml = ""; if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST) { - shoppingListButtonHtml = ''; + shoppingListButtonHtml = ''; } element.html('\ diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php index 4b18fd9a..52d85087 100644 --- a/views/stockentries.blade.php +++ b/views/stockentries.blade.php @@ -152,7 +152,7 @@ @if(GROCY_FEATURE_FLAG_SHOPPINGLIST) + href="{{ $U('/shoppinglistitem/new?embedded&updateexistingproduct&list=1&product=' . $stockEntry->product_id ) }}"> {{ $__t('Add to shopping list') }} diff --git a/views/stockjournal.blade.php b/views/stockjournal.blade.php index c672a89c..0398cfdc 100644 --- a/views/stockjournal.blade.php +++ b/views/stockjournal.blade.php @@ -181,7 +181,7 @@ @if(GROCY_FEATURE_FLAG_SHOPPINGLIST) + href="{{ $U('/shoppinglistitem/new?embedded&updateexistingproduct&list=1&product=' . $stockLogEntry->product_id ) }}"> {{ $__t('Add to shopping list') }} diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index 325a27a6..4243c6e9 100755 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -243,7 +243,7 @@ @if(GROCY_FEATURE_FLAG_SHOPPINGLIST) + href="{{ $U('/shoppinglistitem/new?embedded&updateexistingproduct&list=1&product=' . $currentStockEntry->product_id ) }}"> {{ $__t('Add to shopping list') }}