Skip to content

Commit 6c44e82

Browse files
hatimeria-artur-jewulaZefiryn
authored andcommitted
magento#10765 add confirmation and lock_expires labels to customer grid CSV export
1 parent 8297e5c commit 6c44e82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Customer/Test/Unit/Ui/Component/DataProvider/DocumentTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ public function testGetConfirmationAttribute()
187187
static::assertEquals('Confirmed', (string)$value);
188188
}
189189

190-
191190
/**
192191
* @covers \Magento\Customer\Ui\Component\DataProvider\Document::getCustomAttribute
193192
*/

app/code/Magento/Customer/Ui/Component/DataProvider/Document.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct(
8989
$this->customerMetadata = $customerMetadata;
9090
$this->groupRepository = $groupRepository;
9191
$this->storeManager = $storeManager;
92-
$this->scopeConfig = $scopeConfig ? $scopeConfig : ObjectManager::getInstance()->create(ScopeConfigInterface::class);
92+
$this->scopeConfig = $scopeConfig ?: ObjectManager::getInstance()->create(ScopeConfigInterface::class);
9393
}
9494

9595
/**
@@ -181,7 +181,8 @@ private function setConfirmationValue()
181181
$isConfirmationRequired = (bool)$this->scopeConfig->getValue(
182182
AccountManagement::XML_PATH_IS_CONFIRM,
183183
ScopeInterface::SCOPE_WEBSITES,
184-
$websiteId);
184+
$websiteId
185+
);
185186

186187
$valueText = __('Confirmation Not Required');
187188
if ($isConfirmationRequired) {

0 commit comments

Comments
 (0)