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

Merge pull request #1402 from ikedas/issue-1401 by ikedas

Unable to set custom attribute using the SOAP API (if none already set) (#1401)
parents 19512aa6 367dcf31
......@@ -1430,7 +1430,7 @@ sub setDetails {
and $reception =~
/^(mail|nomail|digest|digestplain|summary|notice|txt|html|urlize|not_me)$/;
if (@_) { # do we have any custom attributes passed?
%newcustom = %{$subscriber->{'custom_attribute'}};
%newcustom = %{$subscriber->{custom_attribute} // {}};
while (@_) {
my $key = shift;
next unless $key;
......@@ -1490,7 +1490,7 @@ sub setCustom {
->faultstring('Not a subscriber to this list')
->faultdetail('Use : <list> <key> <value> ');
}
%newcustom = %{$subscriber->{'custom_attribute'}};
%newcustom = %{$subscriber->{custom_attribute} // {}};
#if(! defined $list->{'admin'}{'custom_attribute'}{$key} ) {
# return SOAP::Data->name('result')->type('boolean')->value(0);
#}
......
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