Commit cc5abe7f authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Prevent the error on "Modification of non-creatable array value" by using...

Prevent the error on "Modification of non-creatable array value" by using "[header->Field][-1]" in scenarios.
parent 07d185db
......@@ -785,7 +785,7 @@ sub _compile_condition {
## available.
if (defined $index) {
$value =
sprintf '[$context->{message}->get_header(\'%s\')]->[%s]',
sprintf 'do { my @h = $context->{message}->get_header(\'%s\'); $h[%s] }',
$field_name, $index;
} else {
$value = sprintf '[$context->{message}->get_header(\'%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