8000 Fixed collapsed ChoiceType options attributes · symfony/symfony@7806e2a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7806e2a

Browse files
committed
Fixed collapsed ChoiceType options attributes
1 parent ddf8b27 commit 7806e2a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_attributes.html.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"
21
<?php if ($disabled): ?>disabled="disabled" <?php endif ?>
32
<?php foreach ($choice_attr as $k => $v): ?>
43
<?php if ($v === true): ?>

src/Symfony/Component/Form/Tests/AbstractLayoutTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ public function testSingleChoiceAttributesWithMainAttributes()
612612
[@class="bar&baz"]
613613
[not(@required)]
614614
[
615-
./option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
616-
/following-sibling::option[@value="&b"][not(@class)][not(@selected)][.="[trans]Choice&B[/trans]"]
615+
./option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"][not(@id)][not(@name)]
616+
/following-sibling::option[@value="&b"][not(@class)][not(@selected)][.="[trans]Choice&B[/trans]"][not(@id)][not(@name)]
617617
]
618618
[count(./option)=2]
619619
'

0 commit comments

Comments
 (0)
0