Skip to content

Commit

Permalink
edit_list: Paragraph including obsoleted sub-parameter is ignored sym…
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Sep 15, 2018
1 parent 945919f commit 882177f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Sympa/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ sub _sanitize_changes_paragraph {
# the whole parameter instance is removed.
return (_pname($ppaths) => undef)
if grep {
$pitem->{format}->{$_}->{occurrence} =~ /^1/
not $pitem->{format}->{$_}->{obsolete}
and $pitem->{format}->{$_}->{occurrence} =~ /^1/
and not defined $cur->{$_}
} _keys($pitem->{format});
# If all children are removed, remove parent.
Expand Down
1 change: 1 addition & 0 deletions src/lib/Sympa/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8170,6 +8170,7 @@ sub _save_list_param {

} elsif (($pinfo->{$key}{'file_format'}{$k}{'occurrence'} =~ /n$/)
&& $pinfo->{$key}{'file_format'}{$k}{'split_char'}) {
next unless $p->{$k} and @{$p->{$k}};

$fd->print(
sprintf "%s %s\n",
Expand Down

0 comments on commit 882177f

Please sign in to comment.