MetaModels/core

Bug in the view conditions - the id is no longer saved but a text is saved

zonky2 opened this issue · 2 comments

Checklist before I submit this issue report

I confirm that:

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.

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

Fixed in MM 2.2