Commit d6b6aab814158ad49face65a1e55b4ec58007e95
Committed by
João M. M. da Silva
1 parent
3040b2e9
Exists in
master
and in
23 other branches
[Mezuro] fixed call to processing with date.
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
plugins/mezuro/lib/kalibro/processing.rb
... | ... | @@ -12,6 +12,7 @@ class Kalibro::Processing < Kalibro::Model |
12 | 12 | end |
13 | 13 | |
14 | 14 | def self.processing_with_date_of(repository_id, date) |
15 | + date = date.is_a?(String) ? DateTime.parse(date) : date | |
15 | 16 | if has_processing_after(repository_id, date) |
16 | 17 | first_processing_after(repository_id, date) |
17 | 18 | elsif has_processing_before(repository_id, date) | ... | ... |
plugins/mezuro/views/mezuro_plugin_processing/_processing.rhtml
... | ... | @@ -25,7 +25,7 @@ |
25 | 25 | jQuery(document).ready(function($) { |
26 | 26 | $("#datepicker").datepicker({ |
27 | 27 | onSelect: function(dateText, inst) { |
28 | - reloadProjectWithDate(dateText) } }); | |
28 | + reloadProcessingWithDate(dateText) } }); | |
29 | 29 | $("#datepicker").toggle(); |
30 | 30 | var date = jQuery("#current_processing_date").attr('data-date').substr(0,10); |
31 | 31 | $("#datepicker").datepicker( "setDate" , date ); |
... | ... | @@ -33,4 +33,4 @@ |
33 | 33 | }); |
34 | 34 | </script> |
35 | 35 | |
36 | -<span id="module_result_root_id" module_result_root_id="<%= @processing.results_root_id %>"> | |
37 | 36 | \ No newline at end of file |
37 | +<span id="module_result_root_id" module_result_root_id="<%= @processing.results_root_id %>"> | ... | ... |