Skip to content

Commit

Permalink
Merge pull request sympa-community#1323 from ikedas/issue-1321 by ikedas
Browse files Browse the repository at this point in the history
Upgrade: some parameters in list config files may be removed
  • Loading branch information
ikedas authored Jan 22, 2022
2 parents 5494ad5 + c234157 commit 6f06bfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/Sympa/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5315,6 +5315,8 @@ sub _load_include_admin_user_postprocess {
listname => $listname,
filter => $filter,
};
delete $config_hash->{'defaults'}{'include_sympa_list'}
if $config_hash->{'defaults'};
}
delete $config_hash->{'include_list'};
delete $config_hash->{'defaults'}{'include_list'}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/Sympa/Upgrade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,7 @@ sub upgrade {
if ($list->{'admin'}{'archive'}{'access'}) {
$list->{'admin'}{'archive'}{'mail_access'} =
{'name' => $list->{'admin'}{'archive'}{'access'}};
delete $list->{'admin'}{'defaults'}{'archive'};
}
delete $list->{'admin'}{'archive'}{'access'};

Expand All @@ -1314,6 +1315,7 @@ sub upgrade {
$list->{'admin'}{'archive'}{'max_month'} =
$list->{'admin'}{'web_archive'}{'max_month'}
if $list->{'admin'}{'web_archive'}{'max_month'};
delete $list->{'admin'}{'defaults'}{'archive'};
}
delete $list->{'admin'}{'web_archive'};

Expand Down

0 comments on commit 6f06bfc

Please sign in to comment.