浏览代码

Fixed a regression in the computation of default choices.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2949 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 年之前
父节点
当前提交
b9a3329add
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup/wizardsteps.class.inc.php

+ 1 - 1
setup/wizardsteps.class.inc.php

@@ -1258,6 +1258,7 @@ EOF
 		foreach($aAlternatives as $index => $aChoice)
 		{
 			$sChoiceId = $sParentId.self::$SEP.$index;
+			$aScores[$sChoiceId] = 0;
 			if ($sChoiceName == null)
 			{
 				$sChoiceName = $sChoiceId;
@@ -1284,7 +1285,6 @@ EOF
 			foreach($aAlternatives as $index => $aChoice)
 			{
 				$sChoiceId = $sParentId.self::$SEP.$index;
-				$aScores[$sChoiceId] = 0;
 				if ($sChoiceName == null)
 				{
 					$sChoiceName = $sChoiceId;