Unverified Commit c3951e11 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #1216 from ikedas/issue-1199 by ikedas

The "subscribe" requests ignored custom_attribute (#1199)
parents 3e8ea5de ad40edad
......@@ -60,6 +60,7 @@ sub _twist {
my $sender = $request->{sender};
my $email = $request->{email};
my $comment = $request->{gecos};
my $ca = $request->{custom_attribute};
$language->set_lang($list->{'admin'}{'lang'});
......@@ -115,6 +116,7 @@ sub _twist {
$u->{'email'} = $email;
$u->{'gecos'} = $comment;
$u->{'date'} = $u->{'update_date'} = time;
$u->{custom_attribute} = $ca if $ca;
$list->add_list_member($u);
if (defined $list->{'add_outcome'}{'errors'}) {
......
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