Plone 5.0.6 not show next when 21 items in a folder by summary view

Plone 5.0.6 not show next when 21 items in a folder by summary view Uploading...

the last attachment not work upload again.

I also found this bug some time ago, but on Plone 4.3.x. This is the cause: https://github.com/plone/plone.batching/issues/9
Since it's already reported I didn't bother to report it on the Products.CMFPlone issue tracker.

I worked around it using a monkey patch. I used collective.monkeypatcher to apply the patch.

This is in monkey.zcml:

<monkey:patch
    description="Disable orphans handling in order to work around bug."
    class="plone.app.contenttypes.browser.folder.FolderView"
    original="batch"
    ignoreOriginal="false"
    replacement=".monkey.batch"
    preserveOriginal="true"
    docstringWarning="true"
    preservedoc="true"
/>

This is in monkey.py:

def batch(self):
    batch = Batch(
        self.results(),
        size=self.b_size,
        start=self.b_start,
        orphan=0,
    )
    return batch

Thanks alot hope they fix it in the official soon

either of you can submit a PR. Looks good to have lines in a major open source code base with your name on it. I always ask to see employees github accounts to see what they have contributed. @mactrash @rafaelbco.