CRM-18778 i18n petition: thank-you page title translation to wrong table
authorAndrew Hunt <andrew@aghstrategies.com>
Wed, 8 Jun 2016 03:36:33 +0000 (23:36 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Wed, 8 Jun 2016 03:45:25 +0000 (23:45 -0400)
----------------------------------------
* CRM-18778: Petition thank-you fields translatable to wrong table
  https://issues.civicrm.org/jira/browse/CRM-18778

templates/CRM/Campaign/Form/Petition.tpl

index c380b3c26431414a54ef3c3bb6e86c9725dbbbe2..bb328b3f396df2c355d2b290586dd7b62ebc3d6d 100644 (file)
@@ -79,7 +79,7 @@
       </tr>
       <tr class="crm-campaign-survey-form-block-thankyou_title">
         <td
-          class="label">{$form.thankyou_title.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_title' id=$contributionPageID}{/if}</td>
+          class="label">{$form.thankyou_title.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_survey' field='thankyou_title' id=$surveyId}{/if}</td>
         <td>{$form.thankyou_title.html}<br/>
 
           <div class="description">{ts}This title will be displayed at the top of the thank-you page.{/ts}</div>
@@ -87,7 +87,7 @@
       </tr>
       <tr class="crm-campaign-survey-form-block-thankyou_text">
         <td
-          class="label">{$form.thankyou_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_text' id=$contributionPageID}{/if}</td>
+          class="label">{$form.thankyou_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_survey' field='thankyou_text' id=$surveyId}{/if}</td>
         <td>{$form.thankyou_text.html}<br/>
 
           <div