Skip to content

Wrong category after migration from v4.x.x to v5.x.x #111

@nollm

Description

@nollm

Bug Report

Current Behavior
The events have a wrong category after switch from v4 to v5.

Environment

  • TYPO3 version(s): 12.4.27
  • cart_events version: 5.0.0
  • Is your TYPO3 installation set up with Composer (Composer Mode): no
  • OS: Ubuntu 22.04

Possible Solution

Before the category was saved as many to many relation in sys_category_record_mm.
And the count of relations was saved in tx_cartevents_domain_model_event.category.

In v5 you set the relationship to 'oneToOne' in TCA.
With that config the category ID is directly saved in the tx_cartevents_domain_model_event.category field.

Instead of changing the relationship use 'maxitems => 1 here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions