diff --git a/app/services/ems_dashboard_service.rb b/app/services/ems_dashboard_service.rb index 3241131695e..919601c856b 100644 --- a/app/services/ems_dashboard_service.rb +++ b/app/services/ems_dashboard_service.rb @@ -48,10 +48,10 @@ def format_data(ems_type, attributes, attr_icon, attr_url, attr_hsh) attr_data = [] attributes.each do |attr| attr_data.push( - :id => attr_hsh[attr] + '_' + @ems_id, + :id => "#{attr_hsh[attr]}_#{@ems_id}", :iconClass => attr_icon[attr], :title => attr_hsh[attr], - :count => @ems.send(attr).length, + :count => @ems.send(attr).count, :href => get_url(ems_type, @ems_id, attr_url[attr]), :notification => { :iconClass => 'pficon pficon-error-circle-o',