Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
7bd0a509
Commit
7bd0a509
authored
Sep 12, 2018
by
IKEDA Soji
Browse files
edit_list: Paragraph including obsoleted sub-parameter is ignored #412
parent
6c6cebd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Config.pm
View file @
7bd0a509
...
...
@@ -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.
...
...
src/lib/Sympa/List.pm
View file @
7bd0a509
...
...
@@ -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",
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment