From 1ea969cd2439f353826abca7cca6355605ff8717 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 9 Jan 2023 11:00:32 +0000 Subject: - Bugfix: Produktgruppenübersichtsseite funktioniert ohne Lagerbestand MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8182 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productgroups/list.phtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/views/mods/mod_productgroups/list.phtml b/views/mods/mod_productgroups/list.phtml index 07df917..440af68 100644 --- a/views/mods/mod_productgroups/list.phtml +++ b/views/mods/mod_productgroups/list.phtml @@ -22,9 +22,10 @@
- callMod('wpsg_mod_stock', 'getBestand', [$g['produkte'][$i]['id']]); + if ($this->hasMod('wpsg_mod_stock')) $lagerbestand = $this->callMod('wpsg_mod_stock', 'getBestand', [$g['produkte'][$i]['id']]); + else $lagerbestand = 1; ?> -- cgit v1.2.3