From ded140da08e0801f59cfb61305c794f6f0cebceb Mon Sep 17 00:00:00 2001 From: Alain Benbassat Date: Thu, 23 Jun 2022 23:11:33 +0200 Subject: [PATCH] adds more detailed logging in case of empty weight column name --- CRM/Utils/Weight.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Weight.php b/CRM/Utils/Weight.php index a7dd759fd4fe..b75087040921 100644 --- a/CRM/Utils/Weight.php +++ b/CRM/Utils/Weight.php @@ -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; }