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

Fix #4646 - Hard coded messages in Surveys module #9796

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

jack7anderson7
Copy link
Contributor

Fix #4646

Description

Update Survey module to contain labels instead of hard coded values

Motivation and Context

How To Test This

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

@jack7anderson7 jack7anderson7 changed the base branch from master to hotfix October 19, 2022 13:49
Copy link
Contributor

@clemente-raposo clemente-raposo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clemente-raposo clemente-raposo added Hacktoberfest Issues & PRs that count towards Hacktoberfest Status: Passed Code Review Mark issue has passed code review reviewed labels Oct 26, 2022
@johnM2401 johnM2401 added Status: Passed Testing Status: Ready to Merge PRs that have passed QA & can be merged into next release batch labels Oct 26, 2022
Copy link
Contributor

@johnM2401 johnM2401 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, all labels changed in survey module are translatable when lang pack is used.

@clemente-raposo clemente-raposo merged commit aefbf45 into salesagility:hotfix Feb 23, 2023
@SinergiaCRM
Copy link
Contributor

@jack7anderson7, @clemente-raposo, @johnM2401, @likhobory and @Dillon-Brown

We have detected that this change is generating an error as the CRM treats the LBL_DRAFT value as a text string and not as a label:

https://github.com/salesagility/SuiteCRM/blob/v7.10-beta-2/modules/Surveys/vardefs.php#L51

It seems to work since when the LBL_DRATF value is not found in the list associated with the field, the first result of the list is returned, which in this case is Draft.

We think you should revert the change and leave the value 'Draft'. Also, we think the LBL_DRAFT tag can be removed from the language file, as it is not used elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Issues & PRs that count towards Hacktoberfest Status: Passed Code Review Mark issue has passed code review reviewed Status: Passed Testing Status: Ready to Merge PRs that have passed QA & can be merged into next release batch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[language] Hard coded messages in Surveys module
5 participants