Skip to content

Commit 8434d74

Browse files
committed
Fixed #15090: Update Magento_Config module to allow admin/url/use_custom in env.php
1 parent aec044d commit 8434d74

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)