Commit 0831ddd9 authored by John C Fiala's avatar John C Fiala
Browse files

Issue #815884 by hkramer: Removing empty items from the attributes so the...

Issue #815884 by hkramer: Removing empty items from the  attributes so the field attributes will apply.
parent 0eab8cb9
......@@ -149,6 +149,7 @@ function _link_sanitize(&$item, $delta, &$field, &$node) {
$field['attributes'] += _link_default_attributes();
// Merge item attributes with attributes defined at the field level.
$item['attributes'] = array_filter($item['attributes']);
$item['attributes'] += $field['attributes'];
// If user is not allowed to choose target attribute, use default defined at
......
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