Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed routing issue for render_test_result and in _test_selector

  • Loading branch information...
commit 2fa7a59a5aa2d07eb194b01dba38e58441efe747 1 parent 98079ad
Bertrand authored
View
2  app/views/results/common/_test_result_window.html.erb
@@ -4,7 +4,7 @@
function load_test_result(test_result_id) {
$('loading_test_result').show();
$('select_test_result_id').disable();
- window.open('<%= url_for({:controller => "results", :action => "render_test_result", :id => @assignment.id})%>?test_result_id='+test_result_id,
+ window.open('<%= url_for({:controller => "results", :action => "render_test_result", :assignment_id => @assignment.id, :id => test_result_id})
"Test Results", "width=400,height=250,resizable=yes,scrollbars=yes")
$('loading_test_result').hide();
$('select_test_result_id').enable();
View
2  app/views/results/common/_test_selector.html.erb
@@ -3,7 +3,7 @@
%>
<%=label_tag "select_test_result_id", h(I18n.t("common.test_results")), :class => "inline_label" %>
<%= link_to_remote( image_tag("icons/cog_go.png", :alt => I18n.t("common.test_code"), :title => I18n.t("common.test_code"), :id => "test_icon"),
-{:url => {:action => "index", :controller => "automated_tests", :result => @result},
+{:url => {:action => "index", :controller => "automated_tests", :assignment_id => @assignment.id,:result => @result},
:before => "$('running_tests').show();",
:complete => "$('running_tests').hide();$('tests_complete').show()"}) %>
<select id="select_test_result_id" onchange="if ($(this).getValue() != '') { load_test_result($(this).getValue()); }">
Please sign in to comment.
Something went wrong with that request. Please try again.