Skip to content
Snippets Groups Projects

Issue #3372296: tokens not supported in field name in action with template 'form field: get submitted value'

Merged Issue #3372296: tokens not supported in field name in action with template 'form field: get submitted value'
Merged mxh requested to merge issue/eca-3372296:3372296-tokens-not-supported into 2.0.x
3 files
+ 20
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -71,9 +71,15 @@ class FormFieldGetValue extends ConfigurableActionBase {
return;
}
$original_field_name = $this->configuration['field_name'];
$this->configuration['field_name'] = (string) $this->tokenService->replace($original_field_name);
$value = $this->getSubmittedValue();
$this->filterFormFieldValue($value);
$this->tokenService->addTokenData($this->configuration['token_name'], $value);
// Restoring the original config entry.
$this->configuration['field_name'] = $original_field_name;
}
}
Loading