From 22448a8a7b7ead8c4ebeadbb1c4f31406d20cf68 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 21 Apr 2021 15:13:16 +0530 Subject: [PATCH] added links to lms_course and lms_batch dooctypes. This makes it possible to the number of batches for a course, the number of mentors for a course etc. --- .../lms/doctype/lms_batch/lms_batch.json | 10 ++++++++-- .../lms/doctype/lms_course/lms_course.json | 20 +++++++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/community/lms/doctype/lms_batch/lms_batch.json b/community/lms/doctype/lms_batch/lms_batch.json index aef7e1f0..0e7f5de1 100644 --- a/community/lms/doctype/lms_batch/lms_batch.json +++ b/community/lms/doctype/lms_batch/lms_batch.json @@ -110,8 +110,14 @@ } ], "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-04-21 10:21:23.183399", + "links": [ + { + "group": "Members", + "link_doctype": "LMS Batch Membership", + "link_fieldname": "batch" + } + ], + "modified": "2021-04-21 12:45:21.144972", "modified_by": "Administrator", "module": "LMS", "name": "LMS Batch", diff --git a/community/lms/doctype/lms_course/lms_course.json b/community/lms/doctype/lms_course/lms_course.json index e03e90b6..abad6a04 100644 --- a/community/lms/doctype/lms_course/lms_course.json +++ b/community/lms/doctype/lms_course/lms_course.json @@ -72,8 +72,24 @@ ], "index_web_pages_for_search": 1, "is_published_field": "is_published", - "links": [], - "modified": "2021-04-15 10:09:25.608422", + "links": [ + { + "group": "Topics", + "link_doctype": "LMS Topic", + "link_fieldname": "course" + }, + { + "group": "Batches", + "link_doctype": "LMS Batch", + "link_fieldname": "course" + }, + { + "group": "Mentors", + "link_doctype": "LMS Course Mentor Mapping", + "link_fieldname": "course" + } + ], + "modified": "2021-04-21 14:45:41.658056", "modified_by": "Administrator", "module": "LMS", "name": "LMS Course",