Bug 41053 - Make notice contents searchable on notices tab of patron details
Summary: Make notice contents searchable on notices tab of patron details
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Marcel de Rooy
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-20 08:58 UTC by Marcel de Rooy
Modified: 2025-10-20 09:44 UTC (History)
3 users (show)

See Also:
GIT URL:
Sponsorship status: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41053: Move notice contents to hidden div (2.60 KB, patch)
2025-10-20 09:23 UTC, Marcel de Rooy
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2025-10-20 08:58:43 UTC
In the past we could search. Changing the hidden iframe to a hidden div where the html filtered content goes from attribute to inner html.
Comment 1 Marcel de Rooy 2025-10-20 09:23:33 UTC
Created attachment 188143 [details] [review]
Bug 41053: Move notice contents to hidden div

With thanks to Jonathan for suggesting this direction.

Test plan:
Go to patron detail, notices tab for a patron with some notices.
Look for a string that only occurs in the notice text of some notice.
Without this patch, you should not find that one.
With this patch, you should find it.
Manipulate the text of a notice to check display of bad html. (Click title.)
* Like: update message_queue set content='<p>test</p><a href="' where message_id=X;

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>