fix: replaced instances of batch to batch_old

This commit is contained in:
Jannat Patel
2023-08-26 15:28:03 +05:30
parent 12b3d16662
commit 09dbe0fed7
11 changed files with 22 additions and 20 deletions

View File

@@ -74,9 +74,9 @@ def get_membership(course, member=None, batch=None):
as_dict=True,
)
if membership and membership.batch:
if membership and membership.batch_old:
membership.batch_title = frappe.db.get_value(
"LMS Batch Old", membership.batch, "title"
"LMS Batch Old", membership.batch_old, "title"
)
return membership