File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
app/code/Magento/ProductAlert
view/frontend/templates/product Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 66
77namespace Magento \ProductAlert \Controller \Add ;
88
9- use Magento \Framework \App \Action \HttpPostActionInterface ;
9+ use Magento \Framework \App \Action \HttpGetActionInterface ;
1010use Magento \ProductAlert \Controller \Add as AddController ;
1111use Magento \Framework \App \Action \Context ;
1212use Magento \Customer \Model \Session as CustomerSession ;
2020/**
2121 * Controller for notifying about price.
2222 */
23- class Price extends AddController implements HttpPostActionInterface
23+ class Price extends AddController implements HttpGetActionInterface
2424{
2525 /**
2626 * @var \Magento\Store\Model\StoreManagerInterface
Original file line number Diff line number Diff line change 66
77namespace Magento \ProductAlert \Controller \Add ;
88
9- use Magento \Framework \App \Action \HttpPostActionInterface ;
9+ use Magento \Framework \App \Action \HttpGetActionInterface ;
1010use Magento \ProductAlert \Controller \Add as AddController ;
1111use Magento \Framework \App \Action \Context ;
1212use Magento \Customer \Model \Session as CustomerSession ;
1919/**
2020 * Controller for notifying about stock.
2121 */
22- class Stock extends AddController implements HttpPostActionInterface
22+ class Stock extends AddController implements HttpGetActionInterface
2323{
2424 /**
2525 * @var \Magento\Catalog\Api\ProductRepositoryInterface
Original file line number Diff line number Diff line change 66?>
77<?php /* @var $block \Magento\ProductAlert\Block\Product\View */ ?>
88<div class="product alert <?= $ block ->getHtmlClass () ?> ">
9- <a href="#" data-post=' <?= /* @noEscape */ $ block ->getPostAction () ?> '
9+ <a href="<?= $ block ->escapeUrl ( $ block -> getSignupUrl ()) ?> "
1010 title="<?= $ block ->escapeHtml (__ ($ block ->getSignupLabel ())) ?> " class="action alert">
1111 <?= $ block ->escapeHtml (__ ($ block ->getSignupLabel ())) ?>
1212 </a>
You can’t perform that action at this time.
0 commit comments