From 50723c45c6429c0923c39da0b8d225e1d91300dc Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 20 Sep 2021 17:22:46 +0000 Subject: [PATCH] Bug 28832: (follow-up) Handle regex fields too Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Martin Renvoize Signed-off-by: Andrew Fuerste-Henry (cherry picked from commit 91289587d3b924b9108ba3438344cdfa356d6988) Signed-off-by: Victor Grousset/tuxayo --- tools/batchMod.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index ba616712a7..0133ca81d3 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -125,10 +125,13 @@ if ($op eq "action") { # Clear the fields we are not editing, leave fields we are blanking foreach( my $i = 0; $i < scalar @values; $i++ ){ - unless( $values[$i] || grep { $subfields[$i] } @disabled ){ + unless( $values[$i] || $searches[$i] || grep { $subfields[$i] } @disabled ){ splice(@values,$i,1); splice(@subfields,$i,1); splice(@tags,$i,1); + splice(@searches,$i,1); + splice(@replaces,$i,1); + splice(@modifiers,$i,1); } } -- 2.39.5