File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
app/code/Magento/ProductAlert/Controller/Unsubscribe Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Stock extends UnsubscribeController implements HttpPostActionInterface
32
32
protected $ productRepository ;
33
33
34
34
/**
35
- * @var StoreManagerInterface
35
+ * @var StoreManagerInterface|null
36
36
*/
37
37
private $ storeManager ;
38
38
@@ -79,18 +79,18 @@ public function execute()
79
79
try {
80
80
$ product = $ this ->retrieveProduct ($ productId );
81
81
$ model = $ this ->stockFactory ->create ()
82
- ->setCustomerId ($ this ->customerSession ->getCustomerId ())
83
- ->setProductId ($ product ->getId ())
84
- ->setWebsiteId (
85
- $ this ->storeManager
86
- ->getStore ()
87
- ->getWebsiteId ()
88
- )->setStoreId (
89
- $ this ->storeManager
90
- ->getStore ()
91
- ->getId ()
92
- )
93
- ->loadByParam ();
82
+ ->setCustomerId ($ this ->customerSession ->getCustomerId ())
83
+ ->setProductId ($ product ->getId ())
84
+ ->setWebsiteId (
85
+ $ this ->storeManager
86
+ ->getStore ()
87
+ ->getWebsiteId ()
88
+ )->setStoreId (
89
+ $ this ->storeManager
90
+ ->getStore ()
91
+ ->getId ()
92
+ )
93
+ ->loadByParam ();
94
94
if ($ model ->getId ()) {
95
95
$ model ->delete ();
96
96
}
You can’t perform that action at this time.
0 commit comments