[Koha-bugs] [Bug 33268] Overlay rules don't work correctly when source is set to *

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 14 16:19:26 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33268

--- Comment #7 from David Gustafsson <glasklas at gmail.com> ---
I have to correct my previous comment, if context + filter (context) has higher
priority, but default rules are still merged in (but only if a rule with an
exact match on context already does already match the tag condition) our
current rules would work the same (as we have a wildcard rule matching the
exact context (source => staff interface). I gave it some thought, and I think
it would be possible to merge in the '*' with a few simple rules:

If there are rules for the context with an exact filter match with a wildcard
tag, discard all wildcard filter rules.

If there are one or more regexp rules for the context with exact match, loop
through all wildcard filter rules and throw away rules with tags matching this
context.

Else merge in all wildcard filter rules with tags not already present in
current matching context.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list