Skip to content
Snippets Groups Projects
Commit f1ea0564 authored by Aman Naudiyal's avatar Aman Naudiyal Committed by Kostia Bohach
Browse files

Issue #3406764 by aman_lnwebworks: Issue with Multiple Entity Reference

parent e571f413
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,10 @@ function entity_reference_edit_link_preprocess_field_multiple_value_form(&$varia
foreach ($items as $item) {
$order_class = $element['#field_name'] . '-delta-order';
$item['_weight']['#attributes']['class'] = [$order_class];
// Remove weight form element from item render array, so it can be rendered
// in a separate table column.
// Remove weight and link form elements from item render array,
// so they can be rendered in a separate table column.
$delta_element = $item['_weight'];
$link_element = $item['_link'];
$link_element = $item['_link'] ?? NULL;
unset($item['_weight']);
unset($item['_link']);
......
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