From 68a7ee22f2d8cdf25bbbd47edecc1f38a6c9df8e Mon Sep 17 00:00:00 2001 From: Zarrar Date: Mon, 23 Apr 2018 13:22:03 +0530 Subject: [PATCH] order_by for gantt error fix (#13752) --- .../doctype/course_schedule/course_schedule_calendar.js | 2 +- .../doctype/patient_appointment/patient_appointment_calendar.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/education/doctype/course_schedule/course_schedule_calendar.js b/erpnext/education/doctype/course_schedule/course_schedule_calendar.js index 4fb69135ebc..803527e5480 100644 --- a/erpnext/education/doctype/course_schedule/course_schedule_calendar.js +++ b/erpnext/education/doctype/course_schedule/course_schedule_calendar.js @@ -8,7 +8,7 @@ frappe.views.calendar["Course Schedule"] = { "allDay": "allDay" }, gantt: false, - order_by: "from_time", + order_by: "schedule_date", filters: [ { "fieldtype": "Link", diff --git a/erpnext/healthcare/doctype/patient_appointment/patient_appointment_calendar.js b/erpnext/healthcare/doctype/patient_appointment/patient_appointment_calendar.js index 29059498f34..72214233ad5 100644 --- a/erpnext/healthcare/doctype/patient_appointment/patient_appointment_calendar.js +++ b/erpnext/healthcare/doctype/patient_appointment/patient_appointment_calendar.js @@ -8,6 +8,7 @@ frappe.views.calendar["Patient Appointment"] = { "allDay": "allDay", "eventColor": "color" }, + order_by: "appointment_date", gantt: true, get_events_method: "erpnext.healthcare.doctype.patient_appointment.patient_appointment.get_events", filters: [