Bug 27350

Summary: Reinstate patron categorycode in URL when editing a patron
Product: Koha Reporter: Sally <sally.healey>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle.m.hall, martin.renvoize
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 25301    
Bug Blocks:    

Description Sally 2021-01-06 12:43:36 UTC
We use custom sections on our memberentry.pl form.  These are not required for all patron categories, so we use jquery to hide the redundant elements - this means the staff do not waste time filling in unneeded sections.

We do this by seeking the patron categorycode in the URL, and then we show/hide the elements as required.

This still works when adding a new patron, as the categorycode is passed in the URL.
This no longer works when editing an existing patron, as only the borrowernumber is passed in the URL.

It seems that Bug 25031 removed the categorycode from the URL when editing a patron.

Is there any chance of reinstating it, please?
Comment 1 Sally 2021-01-06 12:44:53 UTC
Sorry, Bug 25301
Comment 2 Jonathan Druart 2021-01-06 13:15:42 UTC
Hi Sally, couldn't you pick the category code from the "Category" dropdown list?
Comment 3 Martin Renvoize 2021-01-14 10:37:36 UTC
I'm working through doing this with the select box value with Sally.. so I think we can close this issue here :)