From 1366f26eb5186cce0afe44565a6e35e4a55dcfd3 Mon Sep 17 00:00:00 2001 From: meichthys Date: Wed, 18 Feb 2026 04:46:25 +0000 Subject: [PATCH] Resolves Better Missionary Privacy protections Fixes #113 --- .../church_missionary/church_missionary.json | 15 +++++++++++++-- church/fixtures/web_page.json | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/church/church_missions/doctype/church_missionary/church_missionary.json b/church/church_missions/doctype/church_missionary/church_missionary.json index d7f6e69..2b4203e 100644 --- a/church/church_missions/doctype/church_missionary/church_missionary.json +++ b/church/church_missions/doctype/church_missionary/church_missionary.json @@ -19,6 +19,7 @@ "mailing_address", "physical_address", "website", + "private", "support_section", "support_start_date", "support_end_date", @@ -173,7 +174,6 @@ "fieldtype": "Date", "in_filter": 1, "in_preview": 1, - "in_standard_filter": 1, "label": "Support Start Date", "mandatory_depends_on": "eval:doc.support_amount>0" }, @@ -181,13 +181,24 @@ "fieldname": "support_end_date", "fieldtype": "Date", "label": "Support End Date" + }, + { + "default": "0", + "description": "Prevents missionary information from displaying on missions page of website.", + "fieldname": "private", + "fieldtype": "Check", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Private" } ], "grid_page_length": 50, "image_field": "photo", "index_web_pages_for_search": 1, "links": [], - "modified": "2026-02-17 23:10:10.683044", + "modified": "2026-02-17 23:45:27.482806", "modified_by": "Administrator", "module": "Church Missions", "name": "Church Missionary", diff --git a/church/fixtures/web_page.json b/church/fixtures/web_page.json index a64e9f8..2808671 100644 --- a/church/fixtures/web_page.json +++ b/church/fixtures/web_page.json @@ -50,12 +50,12 @@ "insert_style": 0, "javascript": null, "main_section": null, - "main_section_html": "
\n{% set missionary_docs = frappe.get_list(\"Church Missionary\", fields=[\"name\"]) %} \n{% for doc in missionary_docs %}\n {% set missionary = frappe.get_doc(\"Church Missionary\", doc.name) %}\n
\n
\n
\n \n {{ missionary.title }}\n
\n {% if missionary.agency %}\n ({{ missionary.agency }})\n {% endif %}\n
\n
\n

\n \n

\n
\n
\n
\n {{ missionary.email }}\n |\n {% set country_code = frappe.db.get_value(\"Country\", missionary.country, \"code\") %}\n {% if country_code %}\n \"{{\n | \n {% endif %}\n {{ missionary.website }}\n
\n
\n
\n
\n{% endfor %} \n
", + "main_section_html": "
\n{% set missionary_docs = frappe.get_list(\"Church Missionary\", fields=[\"name\"]) %} \n{% for doc in missionary_docs if not frappe.get_doc(\"Church Missionary\", doc.name).private %}\n {% set missionary = frappe.get_doc(\"Church Missionary\", doc.name) %}\n
\n
\n
\n \n {{ missionary.title }}\n
\n {% if missionary.agency %}\n ({{ missionary.agency }})\n {% endif %}\n
\n
\n {% if missionary.photo %} \n

\n \n

\n {% endif %}\n
\n
\n
\n {% if missionary.email %} \n {{ missionary.email }} \n {% endif %}\n {% set country_code = frappe.db.get_value(\"Country\", missionary.country, \"code\") %}\n {% if country_code %}\n \"{{\n {% endif %}\n {% if missionary.website %}\n {{ missionary.website }}\n {% endif %}\n
\n
\n
\n
\n{% endfor %} \n
", "main_section_md": "", "meta_description": null, "meta_image": null, "meta_title": null, - "modified": "2026-02-17 01:07:55.814988", + "modified": "2026-02-17 23:44:06.319449", "module": "Church Missions", "name": "missionaries", "page_blocks": [],