Skip to content

Commit 56d3ad7

Browse files
ENGCOM-4751: Fixed 'Please specify the admin custom URL' error on app:config:import CLI command #22281
- Merge Pull Request #22281 from davidalger/magento2:github-15090 - Merged commits: 1. 8434d74
2 parents 810780b + 8434d74 commit 56d3ad7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Config/Model/Config/Backend/Admin/Usecustom.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ public function beforeSave()
5656
{
5757
$value = $this->getValue();
5858
if ($value == 1) {
59-
$customUrl = $this->getData('groups/url/fields/custom/value');
60-
if (empty($customUrl)) {
59+
$customUrlField = $this->getData('groups/url/fields/custom/value');
60+
$customUrlConfig = $this->_config->getValue('admin/url/custom');
61+
if (empty($customUrlField) && empty($customUrlConfig)) {
6162
throw new \Magento\Framework\Exception\LocalizedException(__('Please specify the admin custom URL.'));
6263
}
6364
}

0 commit comments

Comments
 (0)