Bug #97895
openInline field with selector+unique: 3 problems on add
0%
Description
Context : backend editing, inline field with selector and "unique". M:N relation via intermediate table
Logical concept : a parent record (Parent) and a child record (Child). Each child record is held by a parent record (set by "holder" field in child record). In addition, each parent record can create a relation with other child records, except with the one held. To exclude the child held from the selector, I use "overrideChildTca" on "foreign_table_where":
"tx_mytests_domain_model_child.holder<>###THIS_UID###"
where "holder" is the parent record uid to which the child record belongs. The marker "###THIS_UID###", overwritten by "overrideChildTca", takes the value from the parent (uid of the parent).
Description : selector is correctly filtered by parent "###THIS_UID###".
A child is added to inline field, via selector: child select, in child record, contains all child records, that is to say the child records are not filtered by parent "###THIS_UID###" (first problem).
If a second child record is added, javascript removes this option from select of previous added child record (second problem).
After saving, child select, in child record, (could - depending on intermediate record uid value) becomes INVALID because "###THIS_UID###" no longer refers to the parent record but to the intermediate record (third problem).
Steps to reproduce: TCA + SQL are attached
More details in attached image details.png - screenshots from T3v10, it's the same for T3v11.
Files
Updated by Oliver Hader over 2 years ago
- Category changed from Backend User Interface to FormEngine aka TCEforms