Skip to content

Commit

Permalink
Avoided calling getBackendModelByFieldConfig with empty field (#3151)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Apr 7, 2023
1 parent d1ef6e4 commit cbad8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Model/Config/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function save()
}
}

$backendClass = $helper->getBackendModelByFieldConfig($fieldConfig);
$backendClass = $fieldConfig ? $helper->getBackendModelByFieldConfig($fieldConfig) : false;
if (!$backendClass) {
$backendClass = 'core/config_data';
}
Expand Down

0 comments on commit cbad8d8

Please sign in to comment.