From 9b48cabcdcd7f4c16f4dba9878427e6c209a474b Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 1 Nov 2024 01:44:31 +0000 Subject: [PATCH] Bug 21731: Try to fix filter detection in QA script for xml filter This change adds support for the "xml" filter to the QA script. Test plan: 1. Change a "html" filter in opac-main.tt to use "xml" instead, and temporarily commit your change 2. Run "qa" script 3. Notice it fails 4. Apply the BZ patch 5. Run "qa" script 6. Note that it passes now 7. Sign off the BZ patch and only upload it (and not your temporary commit which you can delete after) --- t/lib/QA/TemplateFilters.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index 113b1f9163..d63a73ab19 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -158,6 +158,9 @@ sub process_tt_block { # Already has url or uri filter or $tt_block =~ m{\|\s?ur(l|i)} + # Already has url or uri filter + or $tt_block =~ m{\|\s?xml} + # Already has trim filter or $tt_block =~ m{\|\s?trim} -- 2.39.2