Skip to content

Commit

Permalink
Merge pull request #661 from pateljannat/fix-eval-slot
Browse files Browse the repository at this point in the history
fix: evaluation slots
  • Loading branch information
pateljannat authored Oct 26, 2023
2 parents ca45e43 + d413aca commit c9ed8a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lms/www/batches/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ const open_evaluation_form = (e) => {
},
filter_description: " ",
only_select: 1,
change: () => {
this.eval_form.set_value("date", "");
$("[data-fieldname='slots']").html("");
},
},
{
fieldtype: "Date",
Expand All @@ -527,7 +531,7 @@ const open_evaluation_form = (e) => {
frappe.datetime.add_days(frappe.datetime.get_today(), 1)
),
change: () => {
get_slots();
if (this.eval_form.get_value("date")) get_slots();
},
},
{
Expand All @@ -552,7 +556,7 @@ const get_slots = () => {
args: {
course: this.eval_form.get_value("course"),
date: this.eval_form.get_value("date"),
batch_name: $(".class-details").data("batch"),
batch: $(".class-details").data("batch"),
},
callback: (r) => {
if (r.message) {
Expand Down

0 comments on commit c9ed8a4

Please sign in to comment.