Skip to content

Commit

Permalink
Merge pull request #10836 from JMAConsulting/CRM-21047
Browse files Browse the repository at this point in the history
CRM-21047, fixed JS error on new contribution form
  • Loading branch information
colemanw authored Aug 10, 2017
2 parents e758683 + 8860e13 commit 92b74cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/CRM/Contribute/Form/Contribution.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,9 @@ function buildAmount( priceSetId, financialtypeIds ) {
cj("#price_set_id option[value='']").html( manual );
cj('label[for="total_amount"]').text('{/literal}{ts}Price Sets{/ts}{literal}');
cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
if (financialtypeIds) {
cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
}
cj(".crm-contribution-form-block-financial_type_id").css("display", "none");
}
Expand Down

0 comments on commit 92b74cd

Please sign in to comment.