Skip to content

Conversation

@braito4
Copy link
Contributor

@braito4 braito4 commented Dec 13, 2025

Lines are created inline without formating

// Add lines substitution key from each line
$lines = '';
$defaultlines = $arraydefaultmessage->content_lines;
$linesisstructuredhtml = false;
Copy link
Member

Choose a reason for hiding this comment

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

This seems useless as this var is not used.
Only change at line 996 is required.

if (isset($defaultlines)) {
foreach ($this->substit_lines as $substit_line) {
$lines .= make_substitutions($defaultlines, $substit_line)."\n";
$lines .= make_substitutions($defaultlines, $substit_line)."\n";
Copy link
Member

Choose a reason for hiding this comment

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

No need to change this line.You can restore the removed tabulation.

@eldy eldy added the PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do) label Dec 15, 2025
Removed unnecessary check for structured HTML in default lines.
@braito4
Copy link
Contributor Author

braito4 commented Dec 15, 2025

solved

@eldy eldy changed the title Check if lines are structured HTML before processing FIX Check if lines are structured HTML before processing Dec 16, 2025
@eldy eldy merged commit e10354b into Dolibarr:20.0 Dec 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants