[Koha-bugs] [Bug 35971] New: Adding a patron/recipient to a routing list twice creates an error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 1 13:42:19 CET 2024


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

            Bug ID: 35971
           Summary: Adding a patron/recipient to a routing list twice
                    creates an error
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Serials
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: christian.stelzenmueller at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

If you try to add a patron or recipient twice to a routing list, it creates an
error.

To test:
1.      Create a subscription
2.      Create a routing list.
3.      Click ‚Add recipients‘ to the routing list. 
4.      Search for a patron, and add them. Then, add the same person again.

Part of the error trace:

C4::Serials::addroutingmember(): DBI Exception: DBD::mysql::st execute failed:
Duplicate entry '2-19' for key 'subscriptionid' at
/kohadevbox/koha/serials/routing.pl line 69
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77

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


More information about the Koha-bugs mailing list