+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Event_Form_EventFees {
/**
- * Set variables up before form is built
+ * Set variables up before form is built.
*
* @param CRM_Core_Form $form
*
if ($form->_eventId &&
($currency = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_eventId, 'currency'))
) {
- $config = CRM_Core_Config::singleton();
- $config->defaultCurrency = $currency;
+ CRM_Core_Config::singleton()->defaultCurrency = $currency;
}
}
}
/**
- * Build the form object
+ * Build the form object.
*
* @param CRM_Core_Form $form
*
0 => ts('- select -'),
) + $discounts,
FALSE,
- array('onchange' => "buildFeeBlock( {$form->_eventId}, this.value );")
+ array('class' => "crm-select2")
);
if ($form->_online) {