From cefa366037bb440cd33a9d418ecb9983bcbd6f23 Mon Sep 17 00:00:00 2001 From: Edsel Date: Thu, 26 Oct 2017 17:16:59 +0530 Subject: [PATCH] CRM-21357 Added default start date on membership batch entry form ---------------------------------------- * CRM-21357: Start date is NULL when membership batch entry is processed https://issues.civicrm.org/jira/browse/CRM-21357 --- templates/CRM/Batch/Form/Entry.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/CRM/Batch/Form/Entry.tpl b/templates/CRM/Batch/Form/Entry.tpl index 5a954c6ef1..573db8755f 100644 --- a/templates/CRM/Batch/Form/Entry.tpl +++ b/templates/CRM/Batch/Form/Entry.tpl @@ -372,6 +372,7 @@ function updateContactInfo(blockNo, prefix) { //get the information on membership type var membershipTypeId = data.values[0].membership_type_id; var membershipJoinDate = data.values[0].join_date; + var membershipStartDate = data.values[0].start_date; CRM.api('MembershipType', 'get', { 'sequential': '1', 'id': membershipTypeId @@ -382,6 +383,7 @@ function updateContactInfo(blockNo, prefix) { cj('select[id="field_' + blockNo + '_membership_type_0"]').val(memTypeContactId).change(); cj('select[id="field_' + blockNo + '_membership_type_1"]').val(membershipTypeId).change(); cj('#field_' + blockNo + '_' + 'join_date').val(membershipJoinDate).trigger('change'); + cj('#field_' + blockNo + '_' + 'membership_start_date').val(membershipStartDate).trigger('change'); } }); } -- 2.25.1