Commit 6529c187 authored by kclair's avatar kclair
Browse files

add patch file for fix_pending_lists; update patches/README

parent da8d0f9b
--- a/sympa-6.1.15-src/wwsympa/wwsympa.fcgi.in
+++ b/sympa-6.1.15-src/wwsympa/wwsympa.fcgi.in
@@ -8086,8 +8086,12 @@ sub do_remove_arc {
## Checking families and other virtual hosts.
&get_server_details();
- my $all_lists = &List::get_lists($robot,
- { 'filter_query' => [ 'status' => 'pending' ] });
+# my $all_lists = &List::get_lists($robot,
+# { 'filter_query' => [ 'status' => 'pending' ] });
+ my $statement = "status_list = 'pending'";
+ my @lists = &List::get_lists_db($statement);
+ my $all_lists = &List::get_lists($robot, undef, @lists);
+
foreach my $list ( @$all_lists ) {
$param->{'pending'}{$list->{'name'}}{'subject'} = $list->{'admin'}{'subject'};
$param->{'pending'}{$list->{'name'}}{'by'} = $list->{'admin'}{'creation'}{'email'};
......@@ -26,3 +26,6 @@ TODO: need to file a bug for this.
we still need to disable listing of latest and active lists, since these operations still time out.
TODO; need to file a bug for this and press the issue upstream
06_fix_pending_lists.patch
----------------------------
do_get_pending_lists in wwsympa.fcgi needs to be patched to pre-select all lists with status 'pending', and then it can pass those lists to get_lists.
Markdown is supported
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