[Koha-bugs] [Bug 9783] New: can hit submit twice when adding patrons

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 11 04:30:17 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9783

            Bug ID: 9783
           Summary: can hit submit twice when adding patrons
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: dcook at prosentient.com.au
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

Clicking twice or more on the Save button will generate duplicate patrons when
adding patrons. Of course, there is handling that detects this, so you can
choose to either edit the original record (i.e. throw away the duplicate) or
create a duplicate record.

However, it shouldn't get to that point by clicking on the Save button. That
handling seems to be there to handle cases where you go through the whole
process of trying to add a new patron only to find out that they already exist
in the system (or at least their username/password do).

--

I tried briefly to add the following code to the memberentrygen page:

$("#entryform").preventDoubleFormSubmit();

But it doesn't seem to work. I wonder if it's because of the
check_form_borrower code that executes on a submit of the form.

-- 
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