diff --git a/application/wizardhelper.class.inc.php b/application/wizardhelper.class.inc.php index 958f19e07..eaf4333b5 100644 --- a/application/wizardhelper.class.inc.php +++ b/application/wizardhelper.class.inc.php @@ -50,8 +50,8 @@ class WizardHelper foreach($this->m_aData['m_oCurrentValues'] as $sAttCode => $value) { // Because this is stored in a Javascript array, unused indexes - // are filled with null values - if ( ($sAttCode !='id') && ($sAttCode !== false) && ($value !== null)) + // are filled with null values and unused keys (stored as strings) contain $$NULL$$ + if ( ($sAttCode !='id') && ($sAttCode !== false) && ($value !== null) && ($value !== '$$NULL$$')) { $oAttDef = MetaModel::GetAttributeDef($this->m_aData['m_sClass'], $sAttCode); if (($oAttDef->IsLinkSet()) && ($value != '') )