فهرست منبع

Fixing (unreported) bug when changing visibility of a course when an image in the course introduction comes from another course (global.inc.php gets confused in the ajax script and think it is for the other course)

Yannick Warnier 13 سال پیش
والد
کامیت
07eb51b83e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      main/course_home/course_home.php

+ 1 - 1
main/course_home/course_home.php

@@ -62,7 +62,7 @@ $(document).ready(function() {
 				$("#id_confirmation_message").hide();
 			},
 			type: "GET",
-			url: "'.api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=set_visibility",
+			url: "'.api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?'.api_get_cidreq().'&a=set_visibility",
 			data: "id=" + my_tool_id + "&sent_http_request=1",
 			success: function(data) {
 				eval("var info=" + data);