Commit 695ef7bb authored by idebr's avatar idebr Committed by pifagor
Browse files

Issue #1475790 by idebr, quicksketch, donquixote, skessler, jcfiala,...

Issue #1475790 by idebr, quicksketch, donquixote, skessler, jcfiala, stevector, Zach, bk_bigfish, balumahender, jrao, pifagor, jbitdrop, das-peter: Link should not modify $item['url'] on node_view() (causes data loss when combined with Workbench Moderation)
parent 300429bf
......@@ -305,6 +305,8 @@ function link_field_load($entity_type, $entities, $field, $instances, $langcode,
foreach ($entities as $id => $entity) {
foreach ($items[$id] as $delta => $item) {
$items[$id][$delta]['attributes'] = _link_load($field, $item, $instances[$id]);
$items[$id][$delta]['original_title'] = $item['title'];
$items[$id][$delta]['original_url'] = $item['url'];
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment