diff --git a/plugins/mezuro/lib/kalibro/metric_result.rb b/plugins/mezuro/lib/kalibro/metric_result.rb index 9170571..364e6f0 100644 --- a/plugins/mezuro/lib/kalibro/metric_result.rb +++ b/plugins/mezuro/lib/kalibro/metric_result.rb @@ -30,7 +30,7 @@ class Kalibro::MetricResult < Kalibro::Model end def self.history_of(metric_name, module_result_id) - response = self.request(:history_of, {:metric_name => metric_name, :module_result_id => module_result_id})[:date_metric_result] + response = self.request(:history_of_metric, {:metric_name => metric_name, :module_result_id => module_result_id})[:date_metric_result] response = [] if response.nil? response = [response] if response.is_a?(Hash) response.map {|date_metric_result| Kalibro::DateMetricResult.new date_metric_result} diff --git a/plugins/mezuro/public/javascripts/processing.js b/plugins/mezuro/public/javascripts/processing.js index a69b227..22efb84 100644 --- a/plugins/mezuro/public/javascripts/processing.js +++ b/plugins/mezuro/public/javascripts/processing.js @@ -26,7 +26,7 @@ function display_metric_history() { //TODO review for project history function display_grade_history() { - var module_name = jQuery(this).attr('data-module-id'); + var module_result_id = jQuery(this).attr('data-module-id'); toggle_mezuro("#historical-grade"); callAction('module_result', 'module_result_history', {module_result_id: module_result_id}, show_grades); return false; diff --git a/plugins/mezuro/views/mezuro_plugin_module_result/_metric_results.rhtml b/plugins/mezuro/views/mezuro_plugin_module_result/_metric_results.rhtml index a89039d..b358850 100644 --- a/plugins/mezuro/views/mezuro_plugin_module_result/_metric_results.rhtml +++ b/plugins/mezuro/views/mezuro_plugin_module_result/_metric_results.rhtml @@ -13,7 +13,7 @@ <% formatted_name = MezuroPlugin::Helpers::ContentViewerHelper.format_name(metric_configuration_snapshot) %> <% if !range_snapshots.nil? %> - <%= metric_configuration_snapshot.metric.name %> + <%= metric_configuration_snapshot.metric.name %> <%= MezuroPlugin::Helpers::ContentViewerHelper.format_grade(metric_result.value) %> <%= metric_configuration_snapshot.weight %> <% range_snapshots.each do |range_snapshot| %> -- libgit2 0.21.2