From 2074a0fa0dafc05cea338766f001d78a4b88205f Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Wed, 21 Jun 2023 11:21:40 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05305=20-=20CSV=20import=20ergonomy=20for?= =?UTF-8?q?=20SaaS=20-=20Fix=20ext=20key=20displayable=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/bulkchange.class.inc.php | 8 ++++++++ pages/csvimport.php | 1 + 2 files changed, 9 insertions(+) diff --git a/core/bulkchange.class.inc.php b/core/bulkchange.class.inc.php index 232a4c0a1..311ff5479 100644 --- a/core/bulkchange.class.inc.php +++ b/core/bulkchange.class.inc.php @@ -37,6 +37,14 @@ abstract class CellChangeSpec return $this->m_proposedValue; } + /** + * @since 3.1.0 N°5305 + */ + public function SetDisplayableValue(string $sDisplayableValue) + { + $this->m_proposedValue = $sDisplayableValue; + } + public function GetOql() { return $this->m_sOql; diff --git a/pages/csvimport.php b/pages/csvimport.php index ddc2b86ce..58c1c16b0 100644 --- a/pages/csvimport.php +++ b/pages/csvimport.php @@ -474,6 +474,7 @@ try { if (isset($aExternalKeysByColumn[$iNumber - 1])) { $sExtKeyName = $aExternalKeysByColumn[$iNumber - 1]; $oExtKeyCellStatus = $aResRow[$sExtKeyName]; + $oExtKeyCellStatus->SetDisplayableValue($oCellStatus->GetDisplayableValue()); $oCellStatus = $oExtKeyCellStatus; } $sHtmlValue = $oCellStatus->GetDisplayableValue();