Skip to content

Commit 50452a1

Browse files
committed
MAGETWO-70642: Magento broken after changing transactional email
1 parent 4accf4b commit 50452a1

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Theme/Controller/Adminhtml/Design/Config

1 file changed

+1
-2
lines changed

app/code/Magento/Theme/Controller/Adminhtml/Design/Config/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ protected function getRequestData()
121121
* in order to delete value from db config but not set empty string,
122122
* which may cause an error in Magento/Theme/Model/ResourceModel/Theme/Collection::getThemeByFullPath().
123123
*/
124-
if (empty($data['theme_theme_id'])) {
124+
if (isset($data['theme_theme_id']) && $data['theme_theme_id'] === '') {
125125
$data['theme_theme_id'] = null;
126126
}
127-
128127
return $data;
129128
}
130129
}

0 commit comments

Comments
 (0)