Commit 4fb71934 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

More fix: Suppress default "message" attribute.

parent cc5abe7f
......@@ -584,6 +584,8 @@ sub _compile_scenario {
my $req;
if ($_ eq 'list_object') {
$req = 'return undef unless ref $that eq \'Sympa::List\';';
} elsif ($_ eq 'message') {
$req = sprintf '$context->{message} ||= Sympa::Message->new("\n");';
} else {
$req = sprintf 'return undef unless exists $context->{%s};', $_;
}
......
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