We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98361d8 + d8bd75f commit 3406505Copy full SHA for 3406505
1 file changed
classes/Hook/HookActionValidateOrder.php
@@ -55,7 +55,8 @@ public function run()
55
{
56
// Check if we are creating backoffice order, we are only launching this hook when creating backoffice order
57
// For FO purposes, we use displayOrderConfirmation.
58
- if (empty($this->context->controller->controller_name) || ($this->context->controller->controller_name != 'AdminOrders' && $this->context->controller->controller_name != 'Admin')) {
+ if (empty($this->context->controller->controller_name)
59
+ || !in_array($this->context->controller->controller_name, ['AdminOrders', 'Admin'])) {
60
return;
61
}
62
0 commit comments