Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
commerce-3484265
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
commerce-3484265
Commits
51336f9e
Commit
51336f9e
authored
13 years ago
by
Ryan Szrama
Browse files
Options
Downloads
Patches
Plain Diff
Fix a cast to cast when converting an amount to an integer.
parent
df9de235
No related branches found
Branches containing commit
Tags
7.x-1.0-beta1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commerce.module
+1
-1
1 addition, 1 deletion
commerce.module
with
1 addition
and
1 deletion
commerce.module
+
1
−
1
View file @
51336f9e
...
...
@@ -454,7 +454,7 @@ function commerce_currency_amount_to_integer($amount, $currency_code) {
// Ensure the amount has the proper number of decimal places for the currency.
$amount
=
commerce_currency_round
(
$amount
,
commerce_currency_load
(
$currency_code
));
return
(
int
)
$amount
*
$factors
[
$currency_code
];
return
(
int
)
(
$amount
*
$factors
[
$currency_code
]
)
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment