Skip to content

Commit

Permalink
adds more detailed logging in case of empty weight column name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainBenbassat committed Jun 23, 2022
1 parent 85f2622 commit ded140d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Weight.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static function getNewWeight($daoName, $fieldValues = NULL, $weightField
*/
public static function getMax($daoName, $fieldValues = NULL, $weightField = 'weight') {
if (empty($weightField)) {
Civi::log()->warning('Empty weight field name');
Civi::log()->warning('Empty weight field name for ' . $daoName);
return 0;
}

Expand Down

0 comments on commit ded140d

Please sign in to comment.