Skip to content

Property conditions broken when changing the tag alias #1411

Description

@dmolineus

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: 7.2.10
Contao version: 4.9.3
MetaModels version: 2.2@dev
Installed MetaModels packages: core,attribute_tags,... Some more but not relevant
DCG version: 2.2@dev

Issue description

(Describe the problem you are having)

Steps to reproduce

  1. I have a tags attribute which uses the alias as alias field
  2. The tags field is also referenced as condition for tl_metamodel_dcasetting_condition of type conditionpropertycontainanyof
  3. I change the tag alias to id the property condition

Describe the behaviour of the application

Because of duplicate aliases I want to migrate to the id as alias field. If I change the tag alias to id the property conditions are broken because the serialized information of the property condition of type conditionpropertycontainanyof are not adjusted

Describe the expected behaviour of the application

  1. I have a tags attribute which uses the alias as alias field
  2. And I use the tags field as referenced field for property conditions of type conditionpropertycontainanyof.
  3. I expect that the property conditions still work / get autoadjusted when changing the property condition tag alias.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementThis issue is about an enhancement (aka new feature)

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions