We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 810780b + 8434d74 commit 56d3ad7Copy full SHA for 56d3ad7
app/code/Magento/Config/Model/Config/Backend/Admin/Usecustom.php
@@ -56,8 +56,9 @@ public function beforeSave()
56
{
57
$value = $this->getValue();
58
if ($value == 1) {
59
- $customUrl = $this->getData('groups/url/fields/custom/value');
60
- if (empty($customUrl)) {
+ $customUrlField = $this->getData('groups/url/fields/custom/value');
+ $customUrlConfig = $this->_config->getValue('admin/url/custom');
61
+ if (empty($customUrlField) && empty($customUrlConfig)) {
62
throw new \Magento\Framework\Exception\LocalizedException(__('Please specify the admin custom URL.'));
63
}
64
0 commit comments