Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sympa
sympa
Commits
8ef66e87
Unverified
Commit
8ef66e87
authored
Sep 13, 2018
by
IKEDA Soji
Committed by
GitHub
Sep 13, 2018
Browse files
Merge pull request #413 from ikedas/issue-412 by ikedas
edit_list: Paragraph including obsoleted sub-parameter is ignored #412
parents
6c6cebd2
7bd0a509
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Config.pm
View file @
8ef66e87
...
...
@@ -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 @
8ef66e87
...
...
@@ -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
.
Attach a 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