Skip to content

Commit

Permalink
MAGETWO-69683: Bugfix > Adding Success Message > Recent Ordered #9852
Browse files Browse the repository at this point in the history
 - fixed static tests
  • Loading branch information
Oleksii Korshenko committed Jul 7, 2017
1 parent 98478af commit aa887ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/code/Magento/Checkout/Controller/Cart/Addgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Magento\Framework\Escaper;
use Magento\Framework\App\ObjectManager;

/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Addgroup extends \Magento\Checkout\Controller\Cart
{
/**
Expand Down Expand Up @@ -56,8 +59,8 @@ public function execute()
$this->cart->addOrderItem($item, 1);
if (!$this->cart->getQuote()->getHasError()) {
$message = __(
'You added %1 to your shopping cart.',
$this->escaper->escapeHtml($item->getName())
'You added %1 to your shopping cart.',
$this->escaper->escapeHtml($item->getName())
);
$this->messageManager->addSuccessMessage($message);
}
Expand Down

0 comments on commit aa887ff

Please sign in to comment.