mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge branch 'master' of https://github.com/alchemy-fr/Phraseanet into PHRAS-2430_Port_to_41-Advance_search_refacto_Restore_Query
This commit is contained in:
@@ -88,7 +88,7 @@ class PhraseanetExtension extends \Twig_Extension
|
||||
$highlightValue = $highlights[$field];
|
||||
|
||||
// if field is multivalued, merge highlighted values with captions ones
|
||||
if (is_array($value)) {
|
||||
if (is_array($value) && count($value) > 1) {
|
||||
$highlightValue = array_merge($highlightValue, array_diff($value, array_map(function($value) {
|
||||
return str_replace(array('[[em]]', '[[/em]]'), array('', ''), $value);
|
||||
}, $highlightValue)));
|
||||
|
Reference in New Issue
Block a user