Bug 28832: (follow-up) Don't remove false values, only empty strings
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 117d826bf3)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
50723c45c6
commit
0aa2011369
|
|
@ -125,13 +125,14 @@ 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] || $searches[$i] || grep { $subfields[$i] } @disabled ){
|
||||
unless( $values[$i] ne q{} || $searches[$i] ne q{} || 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);
|
||||
$i--; # We made the arrays smaller - go back a step in interation
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue