Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
4 tasks done
zonky2 opened this issue May 5, 2022 · 2 comments
Closed
4 tasks done
Assignees
Labels
bug A bug! A bug! Fast, squish it!
Milestone

Comments

@zonky2
Copy link
Contributor

zonky2 commented May 5, 2022

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 zonky2 added the bug A bug! A bug! Fast, squish it! label May 5, 2022
@zonky2 zonky2 added this to the 2.2.0 milestone May 5, 2022
@zonky2
Copy link
Contributor Author

zonky2 commented May 9, 2022

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 zonky2 changed the title Bug in the view conditions if alias not unique (e.g. multi language) Bug in the view conditions - the id is no longer saved but a text is saved May 11, 2022
@zonky2
Copy link
Contributor Author

zonky2 commented Jun 15, 2022

Fixed in MM 2.2

@zonky2 zonky2 closed this as completed Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug! A bug! Fast, squish it!
Projects
None yet
Development

No branches or pull requests

3 participants