Actions
Bug #18227
closedSnippet with variables does not reset @vars after they finish in unsafe mode
Description
If we have a template such as
<%= snippet 'test', :variables => { :var => 'value' } <%= @var %>
the @var would be set by the template which can cause problems later. This only happens in unsafe mode where we use the same context for each rendering. We need to split local context variables and reset them after this local context is rendered.
Updated by Marek Hulán almost 8 years ago
- Related to Feature #18143: Snippet macros should support passing variables added
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4222 added
Updated by Marek Hulán almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset e7603fafbfad302d1813cc59a282c4ded1814c21.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 209
Actions