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

The values in a checkbox must be in the respective language #10621

Open
SinergiaCRM opened this issue Jan 20, 2025 · 0 comments
Open

The values in a checkbox must be in the respective language #10621

SinergiaCRM opened this issue Jan 20, 2025 · 0 comments
Labels
Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

SinergiaCRM commented Jan 20, 2025

Issue

It has been found that, when displaying checkbox type field data in a PDF Template, the values are only displayed in English. Currently, the templates display “true” or “false”.

Possible Fix

The idea would be to add some tags so that the administrator can edit it with his version in the language he wants.

} elseif ($field_def['type'] == 'bool') {
if ($focus->{$fieldName} == "1") {
$repl_arr[$key . "_" . $fieldName] = "true";
} else {
$repl_arr[$key . "_" . $fieldName] = "false";
}

Steps to Reproduce the Issue

1. Go to Studio and, in any module, create a field of type “Checkbox”.
2. Then, create a PDF template of that module.
3. Generate the template and check that the answer of that checkbox is only in English and not in the language defined by the user.

Context

No response

Version

7.14.6

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

PHP 7.4

Operating System and Version

Ubuntu 22.04

@SinergiaCRM SinergiaCRM added the Type: Bug Bugs within the core SuiteCRM codebase label Jan 20, 2025
ainaraRT pushed a commit to SinergiaTIC/SinergiaCRM that referenced this issue Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

1 participant