Skip to content

Commit

Permalink
fix(Student Group): fixing Group Based On related fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MSarari committed Jan 28, 2024
1 parent 8eecf11 commit 0486c97
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions academia/academia/doctype/student_group/student_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"engine": "InnoDB",
"field_order": [
"academic_year",
"university",
"group_based_on",
"student_group_name",
"gender",
"max_strength",
"level",
"column_break_zbwu",
"academic_term",
"university",
"faculty",
"department",
"faculty_department",
"batch",
"academic_program",
"student_category",
Expand Down Expand Up @@ -50,7 +50,7 @@
"fieldtype": "Select",
"in_list_view": 1,
"label": "Group Based On",
"options": "\nBatch\nCourse\nPlan\nLevel & Semester",
"options": "\nBatch\nCourse\nLevel & Semester",
"reqd": 1
},
{
Expand All @@ -63,9 +63,9 @@
},
{
"fieldname": "gender",
"fieldtype": "Select",
"fieldtype": "Link",
"label": "Gender ",
"options": "\nMale\nFemale\nMale & Female"
"options": "Gender"
},
{
"description": "Set 0 for no limit ",
Expand All @@ -82,6 +82,7 @@
"in_global_search": 1,
"in_standard_filter": 1,
"label": "Level",
"mandatory_depends_on": "eval:doc.group_based_on == \"Level & Semester\"",
"options": "Level And Semester Enrollment"
},
{
Expand All @@ -97,21 +98,14 @@
"fieldname": "faculty",
"fieldtype": "Link",
"label": "Faculty",
"options": "Faculty",
"reqd": 1
},
{
"fieldname": "department",
"fieldtype": "Link",
"label": "Department",
"options": "Faculty Department",
"reqd": 1
"options": "Faculty"
},
{
"fieldname": "batch",
"fieldtype": "Link",
"in_global_search": 1,
"label": "Batch",
"mandatory_depends_on": "eval:doc.group_based_on == \"Batch\"",
"options": "Student Batch"
},
{
Expand All @@ -128,6 +122,7 @@
"in_global_search": 1,
"in_standard_filter": 1,
"label": "Course",
"mandatory_depends_on": "eval:doc.group_based_on == \"Course\"",
"options": "Course"
},
{
Expand All @@ -137,7 +132,7 @@
"label": "Disabled "
},
{
"depends_on": "eval:?doc.__islocal",
"depends_on": "eval:!doc.__islocal",
"fieldname": "students_section",
"fieldtype": "Section Break",
"label": "Students"
Expand Down Expand Up @@ -169,11 +164,17 @@
"fieldtype": "Link",
"label": "Academic Program",
"options": "Academic Program"
},
{
"fieldname": "faculty_department",
"fieldtype": "Link",
"label": "Faculty Department",
"options": "Faculty Department"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-01-29 00:24:04.003130",
"modified": "2024-01-29 01:11:34.107336",
"modified_by": "Administrator",
"module": "Academia",
"name": "Student Group",
Expand Down

0 comments on commit 0486c97

Please sign in to comment.