Bug 39482

Summary: Link to edit OpacLibraryInfo from library edit page broken
Product: Koha Reporter: Owen Leonard <oleonard>
Component: System AdministrationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: gmcharlt, phil
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32887
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Owen Leonard 2025-03-28 16:30:30 UTC
When editing a library which has OpacLibraryInfo defined there is a link in the form "Edit HTML content". The link passes the wrong id parameter, resulting in an incorrect entry being edited.
Comment 1 Phil Ringnalda 2025-03-31 23:37:32 UTC
Equally bad but more confusing, it seems to be the wrong id parameter unless the right one is currently the highest number there has ever been.

When you you go to test it in ktd, you have to create an OpacLibraryInfo page, and then you see that your link has the right id, 7. Create another sort of HTML customization page, and now the link is wrongly id 9. Delete that second one, your link is still 9.