parent
ceb5a5b38f
commit
119a76a585
@ -1,3 +1,11 @@
|
|||||||
json.course_id @course.id
|
json.course_id @course.id
|
||||||
json.course_name @course.name
|
json.course_name @course.name
|
||||||
json.category @course.category_info(@homework_type == 1 ? "common_homework" : "group_homework")
|
json.category do
|
||||||
|
if @category.present?
|
||||||
|
json.category_id @category.id
|
||||||
|
json.category_name @category.name
|
||||||
|
else
|
||||||
|
json.category_id @main_category&.id
|
||||||
|
json.category_name @main_category&.module_name
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue