Bug 39482 - Link to edit OpacLibraryInfo from library edit page broken
Summary: Link to edit OpacLibraryInfo from library edit page broken
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-28 16:30 UTC by Owen Leonard
Modified: 2025-03-31 23:37 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.