From bc693edc4eb4f5c88d5e15dd0f22ea74b8dbb34c Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Tue, 31 Oct 2023 13:36:31 +0530 Subject: [PATCH] fix: make date range filters optional --- .../core/doctype/audit_trail/audit_trail.json | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/frappe/core/doctype/audit_trail/audit_trail.json b/frappe/core/doctype/audit_trail/audit_trail.json index 66a93f51b1..762861eedb 100644 --- a/frappe/core/doctype/audit_trail/audit_trail.json +++ b/frappe/core/doctype/audit_trail/audit_trail.json @@ -6,11 +6,13 @@ "editable_grid": 1, "engine": "InnoDB", "field_order": [ - "start_date", "doctype_name", "column_break_peck", - "end_date", "document", + "section_break_dfrx", + "start_date", + "column_break_ytzm", + "end_date", "section_break_gppi", "version_table", "rows_added_section", @@ -74,21 +76,30 @@ { "fieldname": "start_date", "fieldtype": "Date", - "label": "Start Date", - "reqd": 1 + "label": "Start Date" }, { "fieldname": "end_date", "fieldtype": "Date", - "label": "End Date", - "reqd": 1 + "label": "End Date" + }, + { + "collapsible": 1, + "collapsible_depends_on": "eval: doc.start_date || doc.end_date", + "fieldname": "section_break_dfrx", + "fieldtype": "Section Break", + "label": "Date Range" + }, + { + "fieldname": "column_break_ytzm", + "fieldtype": "Column Break" } ], "hide_toolbar": 1, "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2023-10-10 15:20:00.558979", + "modified": "2023-10-31 13:12:41.749483", "modified_by": "Administrator", "module": "Core", "name": "Audit Trail",