Problem/Motivation

If a filter is changed in the Media Manager after it has already been paged, the pagination is not reset. This can result in assets not being found because they are on a previous page and thus skipped.

Steps to reproduce

  • Upload a lot of assets, so media manager's pagination is active.
  • Set a prefix to all assets but one (e.g., testfile_), rename the remaining asset to random_file.
  • Filter the assets for testfile_.
  • Use pagination to browse to page 2.
  • Change the filter from testfile_ to random_file.
  • random_file is not visible since it's placed on the first result page, but media manager still shows page 2.

Proposed resolution

When a filter is changed, reset pagination to 0.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danielwirz created an issue. See original summary.

  • pvbergen committed 68a543b5 on 2.0.x authored by danielwirz
    Issue #3340186: Media Manager: Pagination not reset when filters are...
pvbergen’s picture

Status: Active » Fixed

  • pvbergen committed 68a543b5 on 2.x authored by danielwirz
    Issue #3340186: Media Manager: Pagination not reset when filters are...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.