Skip to content

Commit

Permalink
#10765 add confirmation and lock_expires labels to customer grid CSV…
Browse files Browse the repository at this point in the history
… export
  • Loading branch information
hatimeria-artur-jewula authored and Zefiryn committed Nov 21, 2017
1 parent 5f3ef1b commit 74e1d85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ public function testGetConfirmationAttribute()
static::assertEquals('Confirmed', (string)$value);
}


/**
* @covers \Magento\Customer\Ui\Component\DataProvider\Document::getCustomAttribute
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __construct(
$this->customerMetadata = $customerMetadata;
$this->groupRepository = $groupRepository;
$this->storeManager = $storeManager;
$this->scopeConfig = $scopeConfig ? $scopeConfig : ObjectManager::getInstance()->create(ScopeConfigInterface::class);
$this->scopeConfig = $scopeConfig ?: ObjectManager::getInstance()->create(ScopeConfigInterface::class);
}

/**
Expand Down Expand Up @@ -181,7 +181,8 @@ private function setConfirmationValue()
$isConfirmationRequired = (bool)$this->scopeConfig->getValue(
AccountManagement::XML_PATH_IS_CONFIRM,
ScopeInterface::SCOPE_WEBSITES,
$websiteId);
$websiteId
);

$valueText = __('Confirmation Not Required');
if ($isConfirmationRequired) {
Expand Down

0 comments on commit 74e1d85

Please sign in to comment.