Refactor form property logic rule to load condition mapping from external JSON file (#698)
* Refactor form property logic rule to load condition mapping from external JSON file * fix CONDITION_MAPPING * use config file for load mapping * Simplify condition mapping retrieval in FormPropertyLogicRule --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -6,4 +6,5 @@ return [
|
||||
'template_editor_emails' => explode(',', env('TEMPLATE_EDITOR_EMAILS') ?? ''),
|
||||
'extra_pro_users_emails' => explode(',', env('EXTRA_PRO_USERS_EMAILS') ?? ''),
|
||||
'show_official_templates' => env('SHOW_OFFICIAL_TEMPLATES', true),
|
||||
'condition_mapping' => json_decode(file_get_contents(resource_path('data/open_filters.json')), true),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user