From 7220a7d898db3be688f9f43b0b0defafbd19b01c Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 28 Mar 2024 13:26:34 +0530 Subject: [PATCH] fix: recorder sorting with multi-col --- frappe/core/doctype/recorder/recorder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/core/doctype/recorder/recorder.py b/frappe/core/doctype/recorder/recorder.py index ddbf208ad2..317bd9c148 100644 --- a/frappe/core/doctype/recorder/recorder.py +++ b/frappe/core/doctype/recorder/recorder.py @@ -43,6 +43,7 @@ class Recorder(Document): requests = Recorder.get_filtered_requests(filters)[start : start + page_length] if order_by_statment := order_by: + order_by_statment = order_by_statment.split(",")[0] if "." in order_by_statment: order_by_statment = order_by_statment.split(".")[1]