Commit a8132c96be4eca5b89edde7415a64f15412df77b
Committed by
Paulo Meireles
1 parent
cb843855
Exists in
master
and in
28 other branches
[Mezuro] Fixed project_content
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/project_content.rb
... | ... | @@ -48,11 +48,11 @@ Kalibro::ProjectResult.first_result_after(name, date) |
48 | 48 | def module_result(attributes) |
49 | 49 | module_name = attributes[:module_name].nil? ? project.name : attributes[:module_name] |
50 | 50 | date = attributes[:date].nil? ? project_result.date : project_result_with_date(attributes[:date]).date |
51 | - @module_result ||= Kalibro::ModuleResult.find_by_project_name_and_module_name_and_date(project.name, module_name, date) | |
51 | + @module_result ||= Kalibro::ModuleResult.find_by_project_name_and_module_name_and_date(name, module_name, date) | |
52 | 52 | end |
53 | 53 | |
54 | 54 | def result_history(module_name) |
55 | - @result_history ||= Kalibro::ModuleResult.all_by_project_name_and_module_name(project.name, module_name) | |
55 | + @result_history ||= Kalibro::ModuleResult.all_by_project_name_and_module_name(name, module_name) | |
56 | 56 | end |
57 | 57 | |
58 | 58 | after_save :send_project_to_service | ... | ... |