mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N°3251 (see also PR#152) - CSV data synchro allows "<NULL>" to be interpreted as "Let the attribute unchanged for the current row"
This commit is contained in:
@@ -534,9 +534,9 @@ try
|
|||||||
$aValues = array(); // Used to build the insert query
|
$aValues = array(); // Used to build the insert query
|
||||||
foreach ($aRow as $iCol => $value)
|
foreach ($aRow as $iCol => $value)
|
||||||
{
|
{
|
||||||
if ($value === null)
|
if ($value === null) // Source CSV: "<NULL>"
|
||||||
{
|
{
|
||||||
$aValues[] = 'NULL';
|
$aValues[] = null;
|
||||||
}
|
}
|
||||||
elseif ($aIsDateToTransform[$iCol] !== false)
|
elseif ($aIsDateToTransform[$iCol] !== false)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user