Skip to content

Commit

Permalink
Merge pull request #2902 from himdel/str-long-i
Browse files Browse the repository at this point in the history
ReportData - change long_id to string
  • Loading branch information
mzazrivec committed Dec 4, 2017
2 parents b2eea93 + 716037a commit 59164c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -1099,7 +1099,7 @@ def view_to_hash(view, fetch_data = false)
end
new_row = {
:id => list_row_id(row),
:long_id => row['id'],
:long_id => row['id'].to_s,
:cells => [],
:quadicon => quadicon
}
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/service_controller_spec.rb
Expand Up @@ -176,7 +176,7 @@
)
results = assert_report_data_response
expect(results['data']['rows'].length).to eq(1)
expect(results['data']['rows'][0]['long_id']).to eq(vm.id)
expect(results['data']['rows'][0]['long_id']).to eq(vm.id.to_s)
end
end

Expand Down

0 comments on commit 59164c2

Please sign in to comment.