contact-setting is not plural!
This was working incorrectly because contact-setting is not plural. It's one setting.
This commit is contained in:
parent
ffd609b0cf
commit
722105b1ff
1 changed files with 2 additions and 1 deletions
|
@ -1490,9 +1490,10 @@ sub emailOk($$) {
|
|||
my $contactSetting;
|
||||
|
||||
my $req = $self->getRequest({donorId => $donorId,
|
||||
requestType => 'contact-settings'});
|
||||
requestType => 'contact-setting'});
|
||||
$contactSetting =$req->{requestConfiguration}
|
||||
if defined $req and defined $req->{requestConfiguration};
|
||||
|
||||
return ((not defined $contactSetting) or
|
||||
($contactSetting eq 'no-paper-but-email-ok'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue