Fixed collapsed ChoiceType options attributes

This commit is contained in:
HeahDude 2016-09-11 01:56:49 +02:00
parent ddf8b27e14
commit 7806e2a05d
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"
<?php if ($disabled): ?>disabled="disabled" <?php endif ?>
<?php foreach ($choice_attr as $k => $v): ?>
<?php if ($v === true): ?>

View File

@ -612,8 +612,8 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
[@class="bar&baz"]
[not(@required)]
[
./option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
/following-sibling::option[@value="&b"][not(@class)][not(@selected)][.="[trans]Choice&B[/trans]"]
./option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"][not(@id)][not(@name)]
/following-sibling::option[@value="&b"][not(@class)][not(@selected)][.="[trans]Choice&B[/trans]"][not(@id)][not(@name)]
]
[count(./option)=2]
'