[Koha-bugs] [Bug 36246] New: Have a centralized method for submitting a form via a link

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 6 14:13:59 CET 2024


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

            Bug ID: 36246
           Summary: Have a centralized method for submitting a form via a
                    link
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

With new CSRF protection we have a fair number places where action buttons have
become full forms, or links need to use JS to submit a form.

We have generally agreed that the form should be in the page, and the js can
add the necessary values for POSTing

I think we should go a step further and have a class that can be used to submit
a form via a link with data elements, i.e.

<a class="btn btn-default btn-xs submit-form-link" href="#"
data-adjustment_id="[% adjustment.adjustment_id | html %]" data-invoiceid="[%
invoiceid | html %]" data-action="invoice.pl" data-method="post"
data-op="cud-del_adj" data-confirmation="confirm_delete_adjustment">

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list