From bf62f651078f2a1bb6ef8aa628fa238b2501b240 Mon Sep 17 00:00:00 2001 From: shin Date: Tue, 22 Jun 2021 08:03:29 +0700 Subject: [PATCH 1/4] - Added new and returning customers report --- Block/Menu.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Block/Menu.php b/Block/Menu.php index 606b563..3d1a9ea 100644 --- a/Block/Menu.php +++ b/Block/Menu.php @@ -92,7 +92,13 @@ public function __construct( */ public function getCustomerGroup() { - return $this->customerGroup->toOptionArray(); + $customerGroups = $this->customerGroup->toOptionArray(); + + if ($this->_request->getFullActionName() === 'mpreports_details_newandreturningcustomers') { + unset($customerGroups[1]); + } + + return $customerGroups; } /** From e7eb131ff5b5dae6db50ca7c5d89b83a1152949c Mon Sep 17 00:00:00 2001 From: shin Date: Mon, 28 Jun 2021 10:28:00 +0700 Subject: [PATCH 2/4] revert --- Block/Menu.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Block/Menu.php b/Block/Menu.php index 3d1a9ea..606b563 100644 --- a/Block/Menu.php +++ b/Block/Menu.php @@ -92,13 +92,7 @@ public function __construct( */ public function getCustomerGroup() { - $customerGroups = $this->customerGroup->toOptionArray(); - - if ($this->_request->getFullActionName() === 'mpreports_details_newandreturningcustomers') { - unset($customerGroups[1]); - } - - return $customerGroups; + return $this->customerGroup->toOptionArray(); } /** From 7821cb00bc1b9c6004ba1b98b76434f62412e4b8 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 13 Aug 2021 17:10:38 +0700 Subject: [PATCH 3/4] Updated labels & content --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 50cd79e..dad61c0 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "mageplaza/module-core": "^1.4.5" }, "type": "magento2-module", - "version": "4.1.1", + "version": "4.1.0", "license": "proprietary", "authors": [ { From 2fc6ca5ef62acff78b58cbf86d12653538e36ccc Mon Sep 17 00:00:00 2001 From: shin Date: Mon, 13 Sep 2021 11:36:54 +0700 Subject: [PATCH 4/4] update composer --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index dad61c0..50cd79e 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "mageplaza/module-core": "^1.4.5" }, "type": "magento2-module", - "version": "4.1.0", + "version": "4.1.1", "license": "proprietary", "authors": [ {