Skip to content

Commit

Permalink
Fixed a bug when multiple expanded choices would render unchecked bec…
Browse files Browse the repository at this point in the history
…ause of the Form Framework's strict type checking.
  • Loading branch information
Elnur Abdurrakhimov committed Aug 31, 2011
1 parent 8497f5f commit 6bd1749
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -57,7 +57,8 @@ public function transform($collection)
}
} else {
foreach ($collection as $entity) {
$array[] = current($this->choiceList->getIdentifierValues($entity));
$value = current($this->choiceList->getIdentifierValues($entity));
$array[] = is_numeric($value) ? (int) $value : $value;
}
}

Expand Down

0 comments on commit 6bd1749

Please sign in to comment.