Merge pull request #5918 from eileenmcnaughton/check_hook
[civicrm-core.git] / CRM / Contribute / Form / UpdateSubscription.php
index 221eae56c8df6b31e1670d2f5c01edd4d05f1fc5..75e3f1c3f7f60c63962c92a9df8c484569123860 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -61,7 +61,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
   public $_paymentProcessorObj = NULL;
 
   /**
-   * The id of the contact associated with this recurring contribution
+   * The id of the contact associated with this recurring contribution.
    *
    * @var int
    */
@@ -141,7 +141,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
   }
 
   /**
-   * Actually build the components of the form
+   * Actually build the components of the form.
    *
    * @return void
    */
@@ -151,7 +151,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
       array(
         'size' => 20,
       ), TRUE,
-      'currency', NULL, TRUE
+      'currency', $this->_subscriptionDetails->currency, TRUE
     );
 
     $this->add('text', 'installments', ts('Number of Installments'), array('size' => 20), TRUE);
@@ -181,7 +181,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
   }
 
   /**
-   * called after the user submits the form
+   * called after the user submits the form.
    *
    *
    * @return void