Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configured decimal separator not used correctly when importing float values #10580

Open
SinergiaCRM opened this issue Nov 18, 2024 · 0 comments
Labels
Area:Import Issues & PRs related to all things regarding Importing Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

SinergiaCRM commented Nov 18, 2024

Issue

When importing a data file with a column that corresponds to a float field, if the decimal separator that the user has is different from the dot symbol (.), the imported value for the float field is not correct.

Possible Fix

Implement the solution that is applied with decimal fields in the importSanitize() function of the include/SugarFields/Fields/Float/SugarFieldFloat.php file

Steps to Reproduce the Issue

  1. Set the decimal comma separator (,) in the user profile
  2. Create a Float type field in the Contacts module
  3. Create a record and assign a value to the previous field
  4. Export the Contact and edit the generated file to leave only the last name column (required field) and the Float field column.
  5. Import the file and check that the value of the Float field is not the same and that it uses the decimal symbol configured in the logged in user profile

Context

No response

Version

7.14.6

What browser are you currently using?

Firefox

Browser Version

131.0.3 (64-bit)

Environment Information

MySQL, PHP Version 8.2

Operating System and Version

Ubuntu 22.04.4 LTS

@SinergiaCRM SinergiaCRM added the Type: Bug Bugs within the core SuiteCRM codebase label Nov 18, 2024
ManuSinergiaCRM pushed a commit to SinergiaTIC/SinergiaCRM that referenced this issue Nov 19, 2024
@johnM2401 johnM2401 added Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area:Import Issues & PRs related to all things regarding Importing Severity: Moderate Key function failed, but no or little impact labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Import Issues & PRs related to all things regarding Importing Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants