CRM-16267 Fix setting dates in membership batch
authorColeman Watts <coleman@civicrm.org>
Fri, 10 Apr 2015 22:00:33 +0000 (18:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 10 Apr 2015 22:00:33 +0000 (18:00 -0400)
templates/CRM/Batch/Form/Entry.tpl

index b270095d3dbaee7a02da549cd2f814a5e4e501a7..722a8d71bd989f4a59f37ad165d5b3dc7ce61181 100755 (executable)
@@ -513,8 +513,7 @@ function setDateFieldValue(fname, fieldValue, blockNo) {
   if (date_format != 'mm/dd/yy') {
     displayDateValue = cj.datepicker.formatDate(date_format, actualDateValue);
   }
-
-  cj('#field_' + blockNo + '_' + fname + '_display').val(displayDateValue);
+  cj('[id^=field_' + blockNo + '_' + fname + '_display]').val(displayDateValue);
 
   // need to fix time formatting
   if (dateValues[1]) {