From a756f9b1598599d6889d725e0e15a2287e8971ea Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 18 Mar 2025 17:30:40 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08245=20-=20External=20key=20not=20saved?= =?UTF-8?q?=20in=20n-n=20link=20in=20edition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Links/Indirect/BlockIndirectLinkSetEditTable.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/Application/UI/Links/Indirect/BlockIndirectLinkSetEditTable.php b/sources/Application/UI/Links/Indirect/BlockIndirectLinkSetEditTable.php index 85187862b..5c7760a32 100644 --- a/sources/Application/UI/Links/Indirect/BlockIndirectLinkSetEditTable.php +++ b/sources/Application/UI/Links/Indirect/BlockIndirectLinkSetEditTable.php @@ -360,6 +360,17 @@ JS ); } + // !!patch!! Change registration needs to be performed after Selectize initialization + // @see N°8245 - External key not saved in n-n link in edition + // @see N°8245 since N°7264 Update selectize.js from 0.12.4 to 0.15.2 + if ($iUniqueId > 0) { + $oP->add_ready_script( + <<oUILinksWidget->GetInputId()}.OnLinkAdded($iUniqueId, $iRemoteObjKey); +EOF + ); + } + $sState = ''; $sRemoteKeySafeFieldId = $this->GetFieldId($iUniqueId, $this->oUILinksWidget->GetExternalKeyToRemote()); }