mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
fix #976 edit : character change when editing with thesaurus
fix also display caption junk when a thesaurus term has no entry in the current language
This commit is contained in:
@@ -470,7 +470,7 @@ class caption_Field_Value implements cache_cacheableInterface
|
||||
break;
|
||||
}
|
||||
|
||||
$synonyms = $XPATH_thesaurus->query("sy[@lng='" . $session->usr_i18 . "']", $node->parentNode);
|
||||
$synonyms = $XPATH_thesaurus->query("sy[@lng='" . $session->get_I18n() . "']", $node->parentNode);
|
||||
foreach ($synonyms as $synonym) {
|
||||
$k = $synonym->getAttribute("k");
|
||||
if ($synonym->getAttribute("w") != $term_noacc || $k != $context_noacc) {
|
||||
|
Reference in New Issue
Block a user