Bug 40978: Remove warnings from Budgets.t
If no shipment_budget is set then undef is set as key of the hashref which generates a warning: Use of uninitialized value $row[0] in hash element at /usr/lib/x86_64-linux-gnu/perl5/5.40/DBI.pm line 2122. Later we only access the hashref by budget_id, so this change seems safe. Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitf073262263) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitd4fd8fd299) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
2861e8fdf8
commit
dce55591a8
|
|
@ -581,6 +581,7 @@ sub GetBudgetHierarchy {
|
|||
SELECT shipmentcost_budgetid as budget_id,
|
||||
SUM(shipmentcost) as shipmentcost
|
||||
FROM aqinvoices
|
||||
WHERE shipmentcost_budgetid IS NOT NULL
|
||||
GROUP BY shipmentcost_budgetid
|
||||
|, 'budget_id');
|
||||
my $hr_budget_spent_adjustment = $dbh->selectall_hashref(q|
|
||||
|
|
|
|||
Loading…
Reference in New Issue