Fixed a regression in the computation of default choices.

SVN:trunk[2949]
This commit is contained in:
Denis Flaven
2013-10-22 12:52:45 +00:00
parent f0c66be7cd
commit 94de069963

View File

@@ -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;