Skip to content

Commit

Permalink
Correctly target CRM_Contribute_Form_Contribution_Main
Browse files Browse the repository at this point in the history
  • Loading branch information
grischard committed Feb 24, 2019
1 parent a3c41d5 commit 75c8cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion username.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function username_civicrm_entityTypes(&$entityTypes) {
function username_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
if ( $formName == 'CRM_Contact_Form_Contact' or
$formName == 'CRM_Contact_Form_Inline_CustomData' or
$formName == 'CRM_Contact_Form_Inline_CustomData'
$formName == 'CRM_Contribute_Form_Contribution_Main'
) {
$osmfield = civicrm_api3('CustomField', 'getsingle', array('label' => 'OSM username'));
if(! $osmfield){
Expand Down

0 comments on commit 75c8cb7

Please sign in to comment.