Loading src/Plugin/Field/FieldType/TablefieldItem.php +8 −8 Original line number Diff line number Diff line Loading @@ -186,6 +186,7 @@ class TablefieldItem extends FieldItemBase { // If "Lock defaults" is enabled the table needs sorting. $lock = $this->getFieldDefinition()->getSetting('lock_values'); if ($lock) { if (!empty($values['value']) && is_array($values['value'])) { // Sort columns on key. foreach ($values['value'] as $key => $value) { if (is_array($value)) { Loading @@ -194,7 +195,6 @@ class TablefieldItem extends FieldItemBase { } } // Sort rows on key. if (is_array($values['value'])) { ksort($values['value']); } } Loading Loading
src/Plugin/Field/FieldType/TablefieldItem.php +8 −8 Original line number Diff line number Diff line Loading @@ -186,6 +186,7 @@ class TablefieldItem extends FieldItemBase { // If "Lock defaults" is enabled the table needs sorting. $lock = $this->getFieldDefinition()->getSetting('lock_values'); if ($lock) { if (!empty($values['value']) && is_array($values['value'])) { // Sort columns on key. foreach ($values['value'] as $key => $value) { if (is_array($value)) { Loading @@ -194,7 +195,6 @@ class TablefieldItem extends FieldItemBase { } } // Sort rows on key. if (is_array($values['value'])) { ksort($values['value']); } } Loading