Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11564

Receipt Date hide not working when Send Receipt checkbox is clicked

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      Go to New Contribution for contact who has an email. Click [ ] Send Receipt. Receipt Date should get hidden. However ...this jscript isn't firing (lines 432-434) in Contribution form:

      cj('#is_email_receipt').click( function( )

      { checkEmailDependancies( ); }

      );

      And the reason is because there are two copies of is_email_receipt checkbox in the form (first one is hidden). These lines seem to be the culprit - 156-162. Seems to be duplicate of code later in the form (lines 265-271). Not sure why the first instance was added ???

      SVN blame is here:

      44130 kurund

      {if !$contributionMode}

      44130 kurund

      {if $email and $outBound_option != 2}

      44130 kurund <tr id="email-receipt" style="display:none;" class="crm-contribution-form-block-is_email_receipt">
      44130 kurund <td class="label">{$form.is_email_receipt.label}</td>
      44130 kurund <td>{$form.is_email_receipt.html} <span class="description">

      {ts}

      Automatically email a receipt for this payment to

      {/ts}

      <span id="email-address"></span>?</span>
      44130 kurund </td>
      44130 kurund </tr>
      44130 kurund

      {/if}

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: