Browse Source

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 năm trước cách đây
mục cha
commit
b9a3329add
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;