Project

General

Profile

Bug #28236

Uncaught ReferenceError: foreman_url is not defined on selecting life cycle env while creating/editing hostgroup

Added by Kavita Gaikwad 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1770431

Description of problem:

Uncaught ReferenceError: foreman_url is not defined on selecting life cycle env while creating/editing hostgroup

host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1 Uncaught ReferenceError: foreman_url is not defined
at Object.KT.hosts.fetchContentViews (host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1)
at HTMLSelectElement.KT.hosts.environmentChanged (host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1)
at HTMLSelectElement.dispatch (jquery.js:4737)
at HTMLSelectElement.v.handle (jquery.js:4549)
at Object.trigger (jquery.js:7807)
at HTMLSelectElement.<anonymous> (jquery.js:7875)
at Function.each (jquery.js:365)
at m.fn.init.each (jquery.js:137)
at m.fn.init.trigger (jquery.js:7874)
at r.triggerChange (select2.js:1168)
KT.hosts.fetchContentViews host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1
KT.hosts.environmentChanged
host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1
dispatch jquery.js:4737
v.handle
jquery.js:4549
trigger jquery.js:7807
(anonymous)
jquery.js:7875
each jquery.js:365
each
jquery.js:137
trigger jquery.js:7874
triggerChange
select2.js:1168
onSelect select2.js:2465
selectHighlighted
select2.js:1870
(anonymous) select2.js:807
(anonymous)
select2.js:681
dispatch jquery.js:4737
v.handle
jquery.js:4549

How reproducible:
always

Steps to Reproduce:
1. Navigate to create new hostgroup
2. select life cycle environment
3. See browser console error

Actual results:

Uncaught ReferenceError: foreman_url is not defined on selecting life cycle env while creating/editing hostgroup

Expected results:

Able to create hostgroup successfully with attached lifecycle env and content view.

Additional info:


Related issues

Related to Foreman - Task #23451: move all javascript/css assets to webpackNew2018-04-30

Associated revisions

Revision 58e138ce (diff)
Added by Kavita Gaikwad 9 months ago

Fixes #28236 - replace foreman_url with tfm.tools.foremanURL (#8428)

History

#1 Updated by Kavita Gaikwad 9 months ago

  • Related to Refactor #26198: ensure host list does not trigger a full page reload added

#2 Updated by Kavita Gaikwad 9 months ago

  • Related to deleted (Refactor #26198: ensure host list does not trigger a full page reload)

#3 Updated by Kavita Gaikwad 9 months ago

  • Related to Task #23451: move all javascript/css assets to webpack added

#4 Updated by The Foreman Bot 9 months ago

  • Assignee set to Kavita Gaikwad
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8428 added

#5 Updated by Evgeni Golov 9 months ago

  • Description updated (diff)

#6 Updated by Jonathon Turel 9 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.14.0

#7 Updated by The Foreman Bot 9 months ago

  • Fixed in Releases Katello 3.15.0 added

#8 Updated by Kavita Gaikwad 9 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF