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

hook $form->setDefaults does not work on billing information

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None

      Description

      See #CRM-9403 for context

      You can reproduce this by making this Drupal module:

      <?
      function civicrm_setDefault_civicrm_buildForm( $formName, &$form ) {
      if($formName=='CRM_Contribute_Form_Contribution_Main'||$formName=='CRM_Contribute_Form_Contribution')

      { $form->setDefaults(array('credit_card_number'=>'214125412')); }

      return true;
      }
      ?>

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              alib Ali Bakir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: