#97895Inline field with selector+unique: 3 problems on add
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 5
History 3
-
Oliver Hader changed category <span data-processor="relativetime" data-value="2022-07-12T15:51:20+00:00" > 07/12/22, 15:51 </span>
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2025-06-20T13:04:52+00:00" > 06/20/25, 13:04 </span> -
Benni Mack commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2026-11-09T18:14:13+00:00" > 11/09/26, 18:14 </span>Closing this due to lack of feedback – if you provide more info, let me know and I will re-open the issue.
Could you maybe see if this still applies to you for v13? I think I remember some changes made in this regard, and it would help a lot if you could review :-)