From a0021969ad4a403443a6103b94ff1e55aae791a6 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Thu, 20 Feb 2020 13:22:28 +0530 Subject: [PATCH] fix: Validation message --- erpnext/education/doctype/student_group/student_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/education/doctype/student_group/student_group.py b/erpnext/education/doctype/student_group/student_group.py index c92c69b6b4..2925469312 100644 --- a/erpnext/education/doctype/student_group/student_group.py +++ b/erpnext/education/doctype/student_group/student_group.py @@ -27,7 +27,7 @@ class StudentGroup(Document): def validate_strength(self): if self.max_strength <= 0: - frappe.throw(_("""Cannot enroll less than or equal to 0 students for this student group.""")) + frappe.throw(_("""Max strength must be greater than zero.""")) if self.max_strength and len(self.students) > self.max_strength: frappe.throw(_("""Cannot enroll more than {0} students for this student group.""").format(self.max_strength))