https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37270

            Bug ID: 37270
           Summary: Deleting a report from the actions menu on a list of
                    saved reports does not work
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Reports
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        Depends on: 36192

You need at least one saved report to see this. Reports - Use saved - for any
listed report in the Actions column click the up-arrow next to Run and choose
Delete. Confirm that you want to delete, then nothing happens.

Our JS thinks that the DOM is 

<form>
</form>
<a href="#" class="delete" title="Delete this saved report"><i class="fa
fa-trash-can"></i> Delete</a>

And attaches a click handler to .delete at
https://git.koha-community.org/Koha-community/Koha/src/commit/10853d1edc9c31bcef096ffa514bb3025e0a760e/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt#L2252
which does `return $(this).siblings('form').submit()`.

That fails because there's already a form open above that form, and you can't
nest forms, so the form we want to submit doesn't exist because the browser has
ignored that tag.

Now that we have form-submit.js, we should just use it instead.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36192
[Bug 36192] [OMNIBUS] CSRF Protection for Koha
-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to