From d554fdb2af221cd52a77db886081ed6d979cfad0 Mon Sep 17 00:00:00 2001 From: DelPlop Date: Thu, 20 Jul 2023 11:29:44 +0200 Subject: [PATCH 1/2] fix: types parameters --- .../Bundle/StockAlertBundle/Handler/StockAlertHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Synolia/Bundle/StockAlertBundle/Handler/StockAlertHandler.php b/src/Synolia/Bundle/StockAlertBundle/Handler/StockAlertHandler.php index 9cadd11..6dec94e 100644 --- a/src/Synolia/Bundle/StockAlertBundle/Handler/StockAlertHandler.php +++ b/src/Synolia/Bundle/StockAlertBundle/Handler/StockAlertHandler.php @@ -31,7 +31,7 @@ public function __construct( * @throws NotSupported * @throws ORMException */ - public function create($product, ?string $recipientEmail = null): StockAlert|bool + public function create(Product $product, ?string $recipientEmail = null): StockAlert|bool { $user = $this->tokenAccessor->getUser(); $organization = $this->tokenAccessor->getOrganization(); From e5942706372ef1b6b9502649f0b093379fa58d3e Mon Sep 17 00:00:00 2001 From: DelPlop Date: Thu, 27 Jul 2023 15:45:29 +0200 Subject: [PATCH 2/2] fix: no logged in restriction --- .../imports/oro_product_list_item/oro_product_list_item.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Synolia/Bundle/StockAlertBundle/Resources/views/layouts/default/imports/oro_product_list_item/oro_product_list_item.yml b/src/Synolia/Bundle/StockAlertBundle/Resources/views/layouts/default/imports/oro_product_list_item/oro_product_list_item.yml index 7eccd6e..92830d9 100644 --- a/src/Synolia/Bundle/StockAlertBundle/Resources/views/layouts/default/imports/oro_product_list_item/oro_product_list_item.yml +++ b/src/Synolia/Bundle/StockAlertBundle/Resources/views/layouts/default/imports/oro_product_list_item/oro_product_list_item.yml @@ -6,6 +6,3 @@ layout: id: __stock_alert blockType: block parentId: __product_secondary_content_first_container - conditions: 'context["is_logged_in"] == true' - -