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

            Bug ID: 17307
           Summary: Edit button in patron search page doesn't work without
                    a category code
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs@lists.koha-community.org
          Reporter: arouss1...@gmail.com
        QA Contact: testo...@bugs.koha-community.org
                CC: gmcha...@gmail.com, kyle.m.h...@gmail.com

Description of the problem:
The 'Edit' button in the patron search page doesn't work without a
category code in the URL.

[I've searched extensively and couldn't find this bug listed, so I'm
submitting it as new. Please note that it's different from:
Bug 4508 - can't edit patron attributes using little edit link, and
Bug 4427 - Can't edit patron additional attributes and identifiers.]

Steps to reproduce (in the current master 0254fd7):
Go to Home > Patrons, search for a patron, click on the 'Edit' button
(last column). You cannot edit the patron, and you get the following
Software error in the browser:
Can't call method "get_expiry_date" on an undefined value at
/home/aroussos/kohaclone/members/memberentry.pl line 375.

Notice how the URL is of the form:
cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=52

If you follow a different route and click on the 'Edit' button above
the patron name in the patron Details page it works fine because the
URL is like this (notice the added '&categorycode=J' at the end):
cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=52&categorycode=J

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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