Pārlūkot izejas kodu

Continuing the 'autocomplete' debug.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@958 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 gadi atpakaļ
vecāks
revīzija
63b56e9f5b
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      application/wizardhelper.class.inc.php

+ 2 - 2
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 != '') )