Project

General

Profile

Bug #2157

Locations wizard throws wrong arguments error (1 for 0)

Added by Dominic Cleal over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

After entering the name of a location in the new locations wizard (no locations or orgs existed):

ArgumentError
wrong number of arguments (1 for 0)
app/models/tax_host.rb:118:in `block (2 levels) in '
app/models/tax_host.rb:25:in `block in used_ids'
app/models/tax_host.rb:24:in `each'
app/models/tax_host.rb:24:in `used_ids'
app/models/tax_host.rb:49:in `block in need_to_be_selected_ids'
app/models/tax_host.rb:48:in `map'
app/models/tax_host.rb:48:in `need_to_be_selected_ids'
app/models/tax_host.rb:101:in `check_for_orphans'
app/models/taxonomy.rb:94:in `check_for_orphans'
lib/foreman/controller/taxonomies_controller.rb:47:in `create'
lib/foreman/thread_session.rb:31:in `clear_thread'

Associated revisions

Revision 71223f85 (diff)
Added by Dominic Cleal over 9 years ago

fixes #2157 - used_ids should not pass hosts array

History

#1 Updated by Dominic Cleal over 9 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Dominic Cleal over 9 years ago

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

Also available in: Atom PDF