From d54b77f51013613f97bed968be3e908dfdc6d9d4 Mon Sep 17 00:00:00 2001 From: meichthys Date: Tue, 30 Sep 2025 03:51:30 +0000 Subject: [PATCH] Don't require request field when prayer request type is 'Unspoken' --- .../church_prayer_request/church_prayer_request.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/church/church_prayers/doctype/church_prayer_request/church_prayer_request.json b/church/church_prayers/doctype/church_prayer_request/church_prayer_request.json index e76f436..f1b1d17 100644 --- a/church/church_prayers/doctype/church_prayer_request/church_prayer_request.json +++ b/church/church_prayers/doctype/church_prayer_request/church_prayer_request.json @@ -43,7 +43,8 @@ "in_preview": 1, "in_standard_filter": 1, "label": "Related Person", - "options": "Church Person" + "options": "Church Person", + "search_index": 1 }, { "fieldname": "section_break_usaz", @@ -58,7 +59,7 @@ "in_preview": 1, "in_standard_filter": 1, "label": "Request", - "reqd": 1 + "mandatory_depends_on": "eval: doc.type!=\"Unspoken\";" }, { "allow_in_quick_entry": 1, @@ -83,7 +84,7 @@ ], "grid_page_length": 50, "links": [], - "modified": "2025-09-29 23:30:23.363479", + "modified": "2025-09-29 23:50:36.602523", "modified_by": "Administrator", "module": "Church Prayers", "name": "Church Prayer Request",