Commit 42095189 authored by bgm's avatar bgm Committed by bgm

Fix a syntax error

parent 0d9e92d5
......@@ -13,7 +13,7 @@ class CRM_Discountcontributions_Contribute_Form_Contribution_Main {
// Force CiviDiscount to kick-in on the payment form.
// Based on cividiscount_civicrm_buildForm().
_cividiscount_add_discount_textfield($form);
$code = trim(CRM_Utils_Request::retrieveValue('discountcode', 'String');
$code = trim(CRM_Utils_Request::retrieveValue('discountcode', 'String'));
if ($code) {
$form->setDefaults([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment