From 2b4c058af8d7f611eafc5c2444182dd0f5922600 Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Thu, 21 Oct 2021 17:06:24 +0200 Subject: [PATCH] Set filter_logic from YAML file --- startup_scripts/020_custom_fields.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/startup_scripts/020_custom_fields.py b/startup_scripts/020_custom_fields.py index 64566bd..a40883c 100644 --- a/startup_scripts/020_custom_fields.py +++ b/startup_scripts/020_custom_fields.py @@ -42,6 +42,9 @@ for cf_name, cf_details in customfields.items(): if cf_details.get("type", False): custom_field.type = cf_details["type"] + if cf_details.get("filter_logic", False): + custom_field.filter_logic = cf_details["filter_logic"] + if cf_details.get("weight", -1) >= 0: custom_field.weight = cf_details["weight"]