Bug 36273

Summary: ILL - Refactor $op in ill-requests.pl
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: ILLAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: pedro.amorim
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34478
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 36241, 36243, 36245, 36249    
Bug Blocks:    

Description Pedro Amorim 2024-03-07 12:47:52 UTC
With bug 34478, presenting a form page should be a GET request without 'cud-' in the op URL parameter.
Additionally, a form that creates, updates or deletes some object should be a POST with the 'cud-' prefix.

ill-requests.pl did not do this distinction originally, and still doesn't. It instead works around 'cud-' in the $op to preserve existing functionality. It should be refactored to better distinguish between a GET $op and a POST $op.