Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
review bug ticket: add order status in order type
Browse files Browse the repository at this point in the history
  • Loading branch information
thaimageplaza committed Aug 31, 2020
1 parent 15e8fef commit 914046a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function send($item, $hookType)
if ($hook->getHookType() === HookType::ORDER) {
$statusItem = $item->getStatus();
$orderStatus = explode(',', $hook->getOrderStatus());
if (!in_array($statusItem, $orderStatus)) {
if (!in_array($statusItem, $orderStatus, true)) {
continue;
}
}
Expand Down
12 changes: 0 additions & 12 deletions Observer/AfterOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

namespace Mageplaza\Webhook\Observer;

use Exception;
use Magento\Framework\Event\Observer;
use Mageplaza\Webhook\Model\Config\Source\HookType;

/**
Expand All @@ -35,14 +33,4 @@ class AfterOrder extends AfterSave
* @var string
*/
protected $hookType = HookType::ORDER;

/**
* @param Observer $observer
*
* @throws Exception
*/
public function execute(Observer $observer)
{
parent::execute($observer); // TODO: Change the autogenerated stub
}
}

0 comments on commit 914046a

Please sign in to comment.