Project

General

Profile

Bug #9461

undefined method domain_selected() when selecting Host group domain/subnet

Added by Dominic Cleal over 8 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

On the host group edit page, select Network, then a Domain and Subnet. On the browser console you'll get:

Uncaught ReferenceError: subnet_selected is not defined

It looks like the host group form still uses the common/_subnet partial, which calls subnet_selected(), but this was removed in #7456 and the host edit form now uses something different. Maybe just remove the onchange event from this select?


Related issues

Related to Foreman - Refactor #7456: Extract primary interface from hostClosed2014-09-16
Related to Foreman - Bug #9444: Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tabClosed2015-02-18

Associated revisions

Revision 3345d139 (diff)
Added by Tomer Brisker over 8 years ago

Fixes #9461 - Update subnets on domain change in hostgroup

History

#1 Updated by Dominic Cleal over 8 years ago

  • Subject changed from undefined method subnet_selected() when selecting Host group subnet to undefined method domain_selected() when selecting Host group domain/subnet
  • Legacy Backlogs Release (now unused) set to 28

Changing this slightly, as a more important problem is when selecting a domain from the host group network dropdown, it tries to call domain_selected() and this isn't present in the JS any more. The list of subnets isn't updated, it remains greyed out.

#2 Updated by Dominic Cleal over 8 years ago

  • Related to Refactor #7456: Extract primary interface from host added

#3 Updated by Tomer Brisker over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomer Brisker

#4 Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2187 added
  • Pull request deleted ()

#5 Updated by Tomer Brisker over 8 years ago

  • Related to Bug #9444: Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab added

#6 Updated by Anonymous over 8 years ago

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

#7 Updated by Tomer Brisker over 8 years ago

  • Bugzilla link set to 1195630

Also available in: Atom PDF