File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/Config/Model/Config/Backend/Admin Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
namespace Magento \Config \Model \Config \Backend \Admin ;
11
11
12
12
/**
13
+ * Process custom admin url during configuration value save process.
14
+ *
13
15
* @api
14
16
* @since 100.0.2
15
17
*/
@@ -56,8 +58,9 @@ public function beforeSave()
56
58
{
57
59
$ value = $ this ->getValue ();
58
60
if ($ value == 1 ) {
59
- $ customUrl = $ this ->getData ('groups/url/fields/custom/value ' );
60
- if (empty ($ customUrl )) {
61
+ $ customUrlField = $ this ->getData ('groups/url/fields/custom/value ' );
62
+ $ customUrlConfig = $ this ->_config ->getValue ('admin/url/custom ' );
63
+ if (empty ($ customUrlField ) && empty ($ customUrlConfig )) {
61
64
throw new \Magento \Framework \Exception \LocalizedException (__ ('Please specify the admin custom URL. ' ));
62
65
}
63
66
}
You can’t perform that action at this time.
0 commit comments