mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
set_original_name wasn't working as expected. Added test.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user