8000 Merge branch '4.2' into 4.3 · symfony/symfony-docs@924454d · GitHub
[go: up one dir, main page]

Skip to content

Commit 924454d

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: fix javascript typo
2 parents c4974ba + b021292 commit 924454d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ you need is this JavaScript code:
152152
jQuery('.add-another-collection-widget').click(function (e) {
153153
var list = jQuery(jQuery(this).attr('data-list-selector'));
154154
// Try to find the counter of the list or use the length of the list
155-
var counter = list.data('widget-counter') | list.children().length;
155+
var counter = list.data('widget-counter') || list.children().length;
156156
157157
// grab the prototype template
158158
var newWidget = list.attr('data-prototype');

0 commit comments

Comments
 (0)
0