Commit 7ebf0baf authored by Digidog's avatar Digidog
Browse files

Issue #1264208 by lazysoundsystem, Digidog: Fixed recursive serialization of attributes.

parent ad738b96
......@@ -309,7 +309,9 @@ function _link_process(&$item, $delta = 0, $field, $entity) {
}
// Serialize the attributes array.
if (!is_string($item['attributes'])) {
$item['attributes'] = serialize($item['attributes']);
}
// Don't save an invalid default value (e.g. 'http://').
if ((isset($field['widget']['default_value'][$delta]['url']) && $item['url'] == $field['widget']['default_value'][$delta]['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