Bug in the view conditions - the id is no longer saved but a text is saved
zonky2 opened this issue · 2 comments
zonky2 commented
Checklist before I submit this issue report
I confirm that:
- I have tested this with the latest version available
- I have read documentation @ http://metamodels.readthedocs.org/en/ or http://metamodels.readthedocs.org/de/
- I have checked the Contao community forums for references https://community.contao.org/
- I have checked existing issues for duplicates and found none @ https://github.com/MetaModels/core/issues?q=is%3Aissue
My environment is:
(Please fill in the actual values from your environment - check Contao Manager or use composer show
)
Key | Value | Comments |
---|---|---|
PHP version: | ||
Contao version: | 4.9 | |
MetaModels version: | 2.2 | |
Installed MetaModels packages: | ||
DCG version: |
Issue description
Currently there is a bug in the view conditions - until now the ID of a record was stored in the DB at "Value corresponds to..." - now it is the alias if an alias attribute was specified at the relation. If the language is changed in the mask, the display condition does not work if the alias of the relation is a multilingual alias.
zonky2 commented
The methods getFilterOptionsForDcGeneral
return the set alias as key - but we need the id. This could be solved with https://github.com/MetaModels/core/compare/feature-aliasaware
zonky2 commented
Fixed in MM 2.2