Commit c2eba17f authored by sympa-authors's avatar sympa-authors
Browse files

Fix: renamed lists are set to pending status but listmaster was not notified


git-svn-id: https://subversion.renater.fr/sympa/trunk@3880 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 75e310d5
......@@ -16,6 +16,17 @@ Content-Transfer-Encoding: [%|loc%]_encoding_[%END%]
[% conf.wwsympa_url %]/get_pending_lists
[% ELSIF type == 'request_list_renaming' -%]
Subject: [% FILTER qencode %][%|loc(listname)%]List "%1" renaming request[%END%][%END%]
MIME-Version: 1.0
Content-Type: text/plain; charset=[%|loc%]_charset_[%END%];
Content-Transfer-Encoding: [%|loc%]_encoding_[%END%]
[%|loc(email,listname,new_listname)%]%1 has renamed list "%2" to "%3"[%END%]
[%|loc%]To activate/delete this mailing list :[%END%]
[% conf.wwsympa_url %]/get_pending_lists
[% ELSIF type == 'no_db' -%]
Subject: [% FILTER qencode %][%|loc%]No DataBase[%END%][%END%]
MIME-Version: 1.0
......
......@@ -70,6 +70,9 @@
[% ELSIF notice.msg == 'file_renamed' %]
[%|loc(notice.orig_file,notice.new_file)%]File %1 has been renamed to %2[%END%]
[% ELSIF notice.msg == 'pending_list' %]
[%|loc%]List has been set to the pending status ; listmaster need to validate it[%END%]
[% ELSE %]
[% notice.msg %]
......
......@@ -1211,7 +1211,7 @@ binmode STDIN, ":utf8";
 
# close FILE;
}elsif ($param->{'redirect_to'}) {
do_log ('debug',"Redirecting to $param->{'redirect_to'}");
do_log ('notice',"Redirecting to $param->{'redirect_to'}");
print "Location: $param->{'redirect_to'}\n\n";
}else {
&prepare_report_user();
......@@ -9218,7 +9218,14 @@ sub _restrict_values {
return undef;
}
# set list status topending if creation list is moderated
$list->{'admin'}{'status'} = 'pending' if ($r_action =~ /listmaster/) ;
if ($r_action =~ /listmaster/) {
$list->{'admin'}{'status'} = 'pending' ;
&List::send_notify_to_listmaster('request_list_renaming',$robot,
{'listname' => $list->{'name'},
'new_listname' => $in{'new_listname'},
'email' => $param->{'user'}{'email'}});
&report::notice_report_web('pending_list',{},$param->{'action'},$list);
}
 
## Save config file for the new() later to reload it
$list->save_config($param->{'user'}{'email'});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment