Skip to content

Commit

Permalink
Backport #22281 (commit 8434d74) fixing #15090 on 2.2 allowing admin/…
Browse files Browse the repository at this point in the history
…url/use_custom in env.php
  • Loading branch information
davidalger committed Apr 10, 2019
1 parent aa0a21c commit e12eeaa
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -56,8 +56,9 @@ public function beforeSave()
{
$value = $this->getValue();
if ($value == 1) {
$customUrl = $this->getData('groups/url/fields/custom/value');
if (empty($customUrl)) {
$customUrlField = $this->getData('groups/url/fields/custom/value');
$customUrlConfig = $this->_config->getValue('admin/url/custom');
if (empty($customUrlField) && empty($customUrlConfig)) {
throw new \Magento\Framework\Exception\LocalizedException(__('Please specify the admin custom URL.'));
}
}
Expand Down

0 comments on commit e12eeaa

Please sign in to comment.