Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Commerce
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Feb 2019 at 18:18 UTC
Updated:
9 Jun 2020 at 17:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jkamizato commentedComment #3
jkamizato commentedHere my solution.
Comment #4
mrP commentedRan across the same warning on multiple sites. Patch #3 applies cleanly to latest dev code and no more warnings.
Comment #5
kscheirerbased on #4
Comment #6
rszrama commentedConfirmed the bug, but rather than cast $amount to a float in the return, I'm going to edit the transaction add form to use a numeric value as specified instead of an empty string. I suppose we just always depended on '' being cast to 0 in numeric operations in the past when there's really no reason not to pass 0 to begin with.
Comment #8
rszrama commentedCommitted.
Comment #10
solideogloria commentedRelated: #2927409: Avoid calling commerce_currency_amount_to_decimal() with an empty string $amount