When deleting files (one or many) via the checkbox selection, the first file in the list is also deleted.

Tested with 7.x-2.2 and Drupal 7.23 on IIS 7.5 (Windows Server 2008R2).

Steps to reproduce:

- visit the directory listing
- check one or more boxes next to a file
- choose "Delete selected items" from the actions list
- click the Process button

NOTE: The action confirmation message correctly identifies it will delete the additional file; however, the first file in the directory listing is always selected for deletion. It is not duplicated if only the first file is selected for deletion.

Expected behaviour is that only the selected file(s) are deleted.

Comments

Hello FPM,
this is duplicate of https://drupal.org/node/2062921.
The "select box bug" is solved" in the most recent -dev version.
I included a fix in the stable 7.x-2.2 but as you reported the bug is still there. GIT supplied a new version but didn't take the changes. Drupal is having issues with GIT now and past weeks. Maybe that's the reason. In any case I cannot access the dev repo at this moment. As soon as it becomes available I will reroll a new stable version.

Apologies for the duplicate report.

Glad to hear a new stable is on the way.

Status:Active» Closed (fixed)

Fixed in 7.x-2.3

Finally got a chance to review this in an active project.

I can confirm that 7.x-2.3 does fix the issue.