MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

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

Closed zonky2 closed 2 years ago

zonky2 commented 2 years ago

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.

zonky2 commented 2 years ago

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 2 years ago

Fixed in MM 2.2