Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 500 When deleting a filter component and reordering #220

Open
michaelkoitz opened this issue Oct 7, 2022 · 0 comments
Open

HTTP 500 When deleting a filter component and reordering #220

michaelkoitz opened this issue Oct 7, 2022 · 0 comments

Comments

@michaelkoitz
Copy link

A report becomes unusable when a filter item is deleted and the list of filter components is reordered.

Steps to reproduce:

  1. Create a new Report
  2. Add 3 filters
  3. Delete the one in position 2 (in the middle)
  4. Move the last filter up (click the arrow "up" => "↑" )
  5. Click on View Report

Possible fix:
Re-indexing the components array after unsetting element.
after line 108 (unset)

$elements = array_values($elements);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant