Bug #9087
closedHost selection to change the default org/location from 'Select Action' menu doesn't work
Description
There are few observation related to this issue:
1. On fresh install setup, 'Select Action' drop down doesn't appear automatically unless you select multiple discovered host
2. Once 'Select Action' drop down visible on discovered_host page, select any discovered host, then from dropdown select 'Assign organization/loc"
nothing happens on UI, neither any error raised nor any other window pops up to change org/loc
production.log on performing step2:-
Processing by DiscoveredHostsController#select_multiple_organization as HTML
Redirected to https://dhcpxxxxxxxxx/discovered_hosts
Completed 302 Found in 35ms (ActiveRecord: 3.8ms)
Processing by DiscoveredHostsController#index as HTML
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.rc1/app/views/discovered_hosts/_discovered_host.html.erb (30.2ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.rc1/app/views/discovered_hosts/_discovered_host.html.erb (24.0ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.rc1/app/views/discovered_hosts/_discovered_hosts_list.html.erb (162.8ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.rc1/app/views/discovered_hosts/index.html.erb within layouts/application (182.6ms)
Rendered common/_searchbar.html.erb (6.9ms)
Rendered home/_user_dropdown.html.erb (3.6ms)
Read fragment views/tabs_and_title_records-3 (0.3ms)
Rendered home/_topbar.html.erb (5.6ms)
Rendered layouts/base.html.erb (9.1ms)
Completed 200 OK in 236ms (Views: 191.0ms | ActiveRecord: 14.5ms)
Firebug raises error:
TypeError: $.foremanSelectedHosts is null
...date_counter(),!1}function addHostId(e){jQuery.inArray(e,$.foremanSelectedHosts)...
Files
Updated by Shlomi Zadok about 9 years ago
As for the first issue: "select action" will show itself only after selecting host(s).
On the second issue, we need to investigate: may be related to https://github.com/theforeman/foreman/pull/2050
Updated by Lukas Zapletal about 9 years ago
- Priority changed from Normal to High
Updated by Ori Rabin about 9 years ago
Not reproducible for me after deleting the cookie that Shlomi Zadok mentioned.
Updated by Ori Rabin about 9 years ago
- Status changed from New to Need more information
Sachin Ghai since I can't reproduce this please check it with RC2 and make sure you don't have an old cookie and reopen/close according to the result.
Updated by Sachin Ghai about 9 years ago
Yeah.. sure..I'll try to retest this again and will share the findings..thanks for looking into it.
Updated by Lukas Zapletal over 8 years ago
Sachin can you reproduce now with 1.9 Foreman (or Sat 6.1)?
Updated by Ori Rabin about 8 years ago
- Status changed from Need more information to Resolved