Bug #16806
closed
foreman_url template macro can't be used outside controller context
Added by Marek Hulán about 8 years ago.
Updated over 6 years ago.
Description
When foreman_url is used in a template which is rendered out of controller context it fails with url_for. I'm afraid it's not reproducible with pure Foreman atm but the Renderer should include url helpers so once it's included, all it's macros can be used. The issue is easily reproducible from remote execution plugin, when foreman_url is put in job template and then previewed.
- Subject changed from foreman_url template macro can't be used outside controller context
to foreman_url template macro can't be used outside controller context
- Category set to Templates
- Status changed from New to Assigned
- Assignee set to Marek Hulán
- Priority changed from High to Normal
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3919 added
- Target version set to 1.5.0
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 190
- Related to Bug #16899: All help buttons are broken added
- Translation missing: en.field_release changed from 190 to 189
Moving due to the issue and complex fix in #16899.
Also available in: Atom
PDF