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.
1 parent 4accf4b commit 50452a1Copy full SHA for 50452a1
app/code/Magento/Theme/Controller/Adminhtml/Design/Config/Save.php
@@ -121,10 +121,9 @@ protected function getRequestData()
121
* in order to delete value from db config but not set empty string,
122
* which may cause an error in Magento/Theme/Model/ResourceModel/Theme/Collection::getThemeByFullPath().
123
*/
124
- if (empty($data['theme_theme_id'])) {
+ if (isset($data['theme_theme_id']) && $data['theme_theme_id'] === '') {
125
$data['theme_theme_id'] = null;
126
}
127
-
128
return $data;
129
130
0 commit comments