Project

General

Profile

Actions

Bug #16806

closed

foreman_url template macro can't be used outside controller context

Added by Marek Hulán over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16899: All help buttons are brokenClosedMarek Hulán10/13/2016Actions
Actions #1

Updated by Marek Hulán over 7 years ago

  • 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
Actions #2

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3919 added
Actions #3

Updated by Marek Hulán over 7 years ago

  • Target version set to 1.5.0
Actions #4

Updated by Marek Hulán over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release set to 190
Actions #6

Updated by Marek Hulán over 7 years ago

  • Related to Bug #16899: All help buttons are broken added
Actions #7

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release changed from 190 to 189

Moving due to the issue and complex fix in #16899.

Actions

Also available in: Atom PDF