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 message creted ticket trans no entities #16629

Closed
wants to merge 1 commit into from
Closed

Conversation

FHenry
Copy link
Member

@FHenry FHenry commented Mar 12, 2021

fix message created ticket trans no entities

@@ -307,7 +307,7 @@
//setEventMessages($langs->trans('YourTicketSuccessfullySaved'), null, 'mesgs');

// Make a redirect to avoid to have ticket submitted twice if we make back
setEventMessages($langs->trans('MesgInfosPublicTicketCreatedWithTrackId', '<strong>'.$object->track_id.'</strong>', '<strong>'.$object->ref.'</strong>'), null, 'warnings');
setEventMessages($langs->transnoentities('MesgInfosPublicTicketCreatedWithTrackId', '<strong>'.$object->track_id.'</strong>', '<strong>'.$object->ref.'</strong>'), null, 'warnings');
Copy link
Member

Choose a reason for hiding this comment

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

The ->tans should be required because setEventMessages will then output the string with ->trans only if string is a translation keyword. If a full text, it will remains.
Did you trouble was on a char inside the trackid or the ref ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It display ".... " Into the set event message. Maybe we should let trans but put html into translation files?

Copy link
Member

@eldy eldy Mar 15, 2021

Choose a reason for hiding this comment

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

Does this fix 5a806c1 is ok for you?

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Mar 12, 2021
@eldy eldy closed this in 5a806c1 Mar 15, 2021
eldy added a commit that referenced this pull request Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants