Commit a3645771 authored by Nicole Cordes's avatar Nicole Cordes Committed by Anja Leichsenring
Browse files

[BUGFIX] Ensure context for inline relation buttons

This patch ensures the correct context (previous child id)
is set on appending a new inline child after an existing one.

Resolves: #91912
Related: #91863
Releases: master, 10.4
Change-Id: Ie6159049d23059a5fce38637499217af5a0b25a9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65450


Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 1502c206
......@@ -285,9 +285,7 @@ class InlineControlContainer {
objectId += Separators.structureSeparator + this.dataset.recordUid;
}
const recordUid = this.dataset.recordUid ?? (me.container.querySelector(Selectors.createNewRecordBySelectorSelector) as HTMLInputElement)?.value
me.importRecord([objectId, recordUid]);
me.importRecord([objectId, (me.container.querySelector(Selectors.createNewRecordBySelectorSelector) as HTMLInputElement)?.value], this.dataset.recordUid ?? null);
}
}).delegateTo(this.container, Selectors.createNewRecordButtonSelector);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment