mirror of
https://github.com/frappe/lms.git
synced 2026-04-25 18:09:40 +03:00
fix: skip conferencing provider validation on batch creation
Frappe sets Select field default to the first option ("Zoom") even
when the field isn't in the creation form. Skip validation for new
batches since conferencing is configured after creation.
This commit is contained in:
@@ -128,6 +128,9 @@ class LMSBatch(Document):
|
||||
frappe.throw(_("Row #{0} Date cannot be outside the batch duration.").format(schedule.idx))
|
||||
|
||||
def validate_conferencing_provider(self):
|
||||
if self.is_new() or not self.conferencing_provider:
|
||||
return
|
||||
|
||||
if self.conferencing_provider == "Google Meet":
|
||||
if not self.google_meet_account:
|
||||
frappe.throw(_("Please select a Google Meet account for this batch."))
|
||||
|
||||
Reference in New Issue
Block a user