Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
uc_store_js_util uses is_numeric in the same manner as [#129292]. The check should be replaced with something which takes the format settings into account.
Comments
Comment #1
Island Usurper CreditAttribution: Island Usurper commentedI think you meant #320309: Currency format settings are not taken into account in the "Credit card terminal".
Anyway. uc_store_js_utils() isn't actually used for currency_format that I can see. But if it were, I'd expect the JavaScript code that calls it to pass in the 'amount' value as an integer or float.
And making sure the input is recognizably numeric is exactly what I did for #320309. There's nothing at the moment to fix here, so thanks for the "heads up".