|
|
|
@ -17,7 +17,7 @@ json.data do
|
|
|
|
|
end
|
|
|
|
|
# json.partial! "files/course_groups", attachment_group_settings: attachment.attachment_group_settings
|
|
|
|
|
json.category_id attachment.course_second_category_id
|
|
|
|
|
if (@parent_category_id.blank? || @parent_category_id != 0) && attachment.course_second_category&.parent_id.to_i != 0
|
|
|
|
|
if (@course_second_category_id.to_i == 0 && attachment.course_second_category.present?) || (@parent_category_id == 0 && attachment.course_second_category&.parent_id.to_i != 0)
|
|
|
|
|
json.category_name attachment.course_second_category&.name
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|