-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Labels
No labels