Commit 3ca82f2b authored by sean_e_dietrich's avatar sean_e_dietrich Committed by pifagor
Browse files

Issue #2943127 by sean_e_dietrich, kyuubi, Chris Matthews, ShaunLaws, pifagor:...

Issue #2943127 by sean_e_dietrich, kyuubi, Chris Matthews, ShaunLaws, pifagor: Link field with static title always shows even when no url entered
parent c9c29fa3
......@@ -356,7 +356,7 @@ function link_field_prepare_view($entity_type, $entities, $field, $instances, $l
foreach ($items as $entity_id => $entity_items) {
$settings = $instances[$entity_id]['settings'];
$trimTitle = trim($settings['title_value']);
if (empty($entity_items) && !empty($trimTitle) && $settings['title'] == 'value') {
if (empty($entity_items) && !empty($trimTitle) && $settings['title'] == 'value' && $settings['url'] === 'optional') {
$token_value = token_replace($settings['title_value'], array($entity_type => $entities[$entity_id]));
$display_title = htmlspecialchars_decode($token_value, ENT_QUOTES);
$items[$entity_id][0]['url'] = NULL;
......
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