Skip to content
Snippets Groups Projects
Commit bf8d55b4 authored by Gauravjeet Pahuja's avatar Gauravjeet Pahuja Committed by Andrii Podanenko
Browse files

Issue #3315720 by gauravjeet: TypeError: krsort(): Argument #1 ($array) must...

Issue #3315720 by gauravjeet: TypeError: krsort(): Argument #1 ($array) must be of type array, null given in krsort()
parent 7475726b
No related branches found
No related tags found
1 merge request!99Closes #3359875
......@@ -44,6 +44,7 @@ class WidgetSubmit {
// interaction. We sort them lexicographically in reverse order to get inner
// forms before outer forms, to ensure inside-out saving of entities.
// @see \Drupal\inline_entity_form\Plugin\Field\FieldWidget\InlineEntityFormBase::makeIefId
$widget_states = $widget_states ?? [];
krsort($widget_states, SORT_STRING);
foreach ($widget_states as &$widget_state) {
$widget_state += ['entities' => [], 'delete' => []];
......
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