Skip to content

Commit b021292

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: fix javascript typo
2 parents 83d00a7 + 2aa326a commit b021292

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
@@ -151,7 +151,7 @@ you need is this JavaScript code:
151151
jQuery('.add-another-collection-widget').click(function (e) {
152152
var list = jQuery(jQuery(this).attr('data-list-selector'));
153153
// Try to find the counter of the list or use the length of the list
154-
var counter = list.data('widget-counter') | list.children().length;
154+
var counter = list.data('widget-counter') || list.children().length;
155155
156156
// grab the prototype template
157157
var newWidget = list.attr('data-prototype');

0 commit comments

Comments
 (0)