소스 검색

Fixing bug when saving exercises, apache error "Request-URI Too Large" see BT#5151

Julio Montoya 12 년 전
부모
커밋
042923686c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      main/exercice/exercise_submit.php

+ 2 - 0
main/exercice/exercise_submit.php

@@ -837,6 +837,7 @@ if (!empty($error)) {
 
           		$("#save_for_now_"+question_id).html("'.addslashes(Display::return_icon('loading1.gif')).'");
                     $.ajax({
+                        type:"post",
                         url: "'.api_get_path(WEB_AJAX_PATH).'exercise.ajax.php?a=save_exercise_by_now",
                         data: "'.$params.'&type=simple&question_id="+question_id+"&"+my_choice+"&"+hotspot+"&"+remind_list,
                         success: function(return_value) {
@@ -900,6 +901,7 @@ if (!empty($error)) {
           		$("#save_all_reponse").html("'.addslashes(Display::return_icon('loading1.gif')).'");
 
                 $.ajax({
+                    type:"post",
                     url: "'.api_get_path(WEB_AJAX_PATH).'exercise.ajax.php?a=save_exercise_by_now",
                     data: "'.$params.'&type=all&"+my_choice+"&"+hotspot+"&"+free_answers+"&"+remind_list,
                     success: function(return_value) {