Skip to content
Snippets Groups Projects
Commit 7326019b authored by keshav's avatar keshav Committed by Elaman Imashov
Browse files

Issue #3383621: Error if no default value have been set to the field reaction

parent 5a7585cc
No related branches found
No related tags found
1 merge request!2Issue #3383621: Error if no default value have been set to the field reaction
......@@ -110,7 +110,7 @@ class VotingApiReactionWidget extends WidgetBase implements ContainerFactoryPlug
'#type' => 'details',
// Open the details when the selected value is different to the stored
// default values for the field.
'#open' => ($items->status != $default_values[0]['status']),
'#open' => (isset($default_values[0]) && $items->status != $default_values[0]['status']),
'#group' => 'advanced',
'#attributes' => [
'class' => ['votingapi-reaction-' . Html::getClass($entity->getEntityTypeId()) . '-settings-form'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment