https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43119 --- Comment #7 from Lisette Scheer <lisette@bywatersolutions.com> --- Created attachment 202275 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202275&action=edit Bug 43119: Restore item and hold links to the log viewer INSERT INTO action_logs (timestamp, user, module, action, object, info, interface) VALUES (NOW(), 5, 'CIRCULATION', 'ISSUE', 5, '{"issue":1,"branchcode":"CPL","itemnumber":1,"confirmations":["TOO_MANY"],"forced":["DEBT"]}', 'intranet'), (NOW(), 5, 'CIRCULATION', 'RETURN', 5, '1', 'intranet'), (NOW(), 5, 'HOLDS', 'CREATE', 7, '{"hold":7,"biblionumber":1,"itemnumber":1,"confirmations":["HIGHHOLDS"],"forced":["HOLD_POLICY_OVERRIDE"]}', 'intranet'); Test plan: 1) Without the patch applied, run the populate SQL above against the kohadev database. 2) Go to Tools > Log viewer 3) Under Modules, select only Circulation - leave the date range empty and click Submit. 4) Observe the ISSUE row's Info column shows the raw JSON payload as plain text, and the RETURN row shows the bare itemnumber "1" as plain text - neither is a clickable link to the item. 5) Go back, select only the Holds module, click Submit, and observe the CREATE row's Info column likewise shows raw JSON with no hold/item links. 6) Apply the patch. 7) Run yarn build && restart_all, then hard refresh the browser. 8) Repeat step 3. 9) Confirm the ISSUE row's Info column now shows a link reading "Item <barcode> CPL" (e.g. Item 3999900000001 CPL) - the branchcode comes from the JSON payload - and clicking it opens the item page. Override information is also displayed correctly 10) Confirm the RETURN row's Info column now shows a link reading "Item <barcode>" (no branchcode) opening the same item's detail page - verifying the bare-itemnumber payload path. 11) Repeat step 5. Confirm the CREATE row now shows "Hold 7 on biblio 1" linking to reserve/request.pl?biblionumber=1, followed by " - Item 1" linking to the item detail page. Override information is also displayed correctly Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.