You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The levenshtein index does not get updated in my installation when saving a model. I noticed two issues:
The checksum in WordList is calculated based on the relevance and not on the words (e.g. sha1(11)). If the number of words does not change, the checksum will be correct, even if the words have changed:
Somehow $metaModel->getActiveLanguage() returns en, although the MetaModel is not translated and the locale in the backend is de. I only need and use German. When words are added after saving, they are saved for en and not for de.
Checklist before I submit this issue report
I confirm that:
My environment is:
Issue description
The levenshtein index does not get updated in my installation when saving a model. I noticed two issues:
WordList
is calculated based on the relevance and not on the words (e.g.sha1(11)
). If the number of words does not change, the checksum will be correct, even if the words have changed:attribute_levenshtein/src/Attribute/WordList.php
Line 70 in 4c15075
$metaModel->getActiveLanguage()
returnsen
, although the MetaModel is not translated and the locale in the backend isde
. I only need and use German. When words are added after saving, they are saved foren
and not forde
.attribute_levenshtein/src/Attribute/AttributeLevenshtein.php
Lines 192 to 197 in 4c15075
Steps to reproduce
Describe the behaviour of the application
The result is empty.
Describe the expected behaviour of the application
The model with the word should be displayed.
Screenshots
Table
tl_metamodel_levensthein
with the checksumssha1(11)
,sha1(111)
, ... and languageen
:The text was updated successfully, but these errors were encountered: