Skip to content

Commit

Permalink
ENGCOM-4741: [Backport] Fixed "Please specify the admin custom URL" e…
Browse files Browse the repository at this point in the history
…rror on app:config:import CLI command #22282
  • Loading branch information
sidolov authored Apr 22, 2019
2 parents 5a1438f + 64d13ed commit fa145cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 fa145cb

Please sign in to comment.