Skip to content

Commit

Permalink
Merge pull request #21143 from seamuslee001/fix_enotice_php8
Browse files Browse the repository at this point in the history
[REF] Fix e-notice in APIv3 Profile Test on PHP8
  • Loading branch information
eileenmcnaughton authored Aug 16, 2021
2 parents 43da425 + 3413e58 commit c2f9f4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v3/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour,
*/
}
}
$profileFields[$profileID] = $profileFields[$profileID] ?? [];
uasort($profileFields[$profileID], "_civicrm_api3_order_by_weight");
return $profileFields[$profileID];
}
Expand Down

0 comments on commit c2f9f4e

Please sign in to comment.