From 5e7a26c2e6d0e3cb3e528bf8f6c3574d28af7ebe Mon Sep 17 00:00:00 2001 From: Jaap Jansma <jaap.jansma@civicoop.org> Date: Mon, 2 Mar 2020 11:38:19 +0100 Subject: [PATCH] Fixed issue with automatic set data processor title --- templates/CRM/Dataprocessor/Form/Source.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Dataprocessor/Form/Source.tpl b/templates/CRM/Dataprocessor/Form/Source.tpl index 6a24e22f..a9dc1ed1 100644 --- a/templates/CRM/Dataprocessor/Form/Source.tpl +++ b/templates/CRM/Dataprocessor/Form/Source.tpl @@ -60,6 +60,7 @@ $('#type').on('change', function() { {/literal}{if $action eq 1}{literal} var titlepreset = $.trim($('#type option:selected').text().split("::").pop()); + titlepreset = $.trim(titlepreset.split("(").shift()); $('#title').val(titlepreset).trigger('blur'); {/literal}{/if}{literal}; var type = $('#type').val(); @@ -104,4 +105,4 @@ </div> {/if} -{/crmScope} \ No newline at end of file +{/crmScope} -- GitLab