set_original_name wasn't working as expected. Added test.

This commit is contained in:
Benoît Burnichon
2015-07-10 19:06:10 +02:00
parent c0ceb65ba2
commit afbacaa640
3 changed files with 21 additions and 5 deletions

View File

@@ -667,7 +667,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
}
// Replacing original name in multi values is non sense
if (!$data_field->is_multi()) {
if ($data_field->is_multi()) {
continue;
}
@@ -684,9 +684,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
}
$this->set_metadatas([
'meta_struct_id' => $meta_struct_id,
'meta_id' => $meta_id,
'value' => $original_name,
['meta_struct_id' => $meta_struct_id, 'meta_id' => $meta_id, 'value' => $original_name],
], true);
}