Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fixed table formatting and border in PDF
- Fixed table cell size in PDF generation
- Fixed Change analysis and plan fields rendering as raw HTML in PDF

## [4.0.2] - 2025-09-30

Expand Down
29 changes: 10 additions & 19 deletions inc/change.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,45 +311,36 @@ public static function pdfAnalysis(PluginPdfSimplePDF $pdf, Change $job)
$pdf->setColumnsSize(100);
$pdf->displayTitle('<b>' . __('Analysis') . '</b>');

$pdf->setColumnsSize(10, 90);

$pdf->displayText(sprintf(
__('%1$s: %2$s'),
$pdf->displayText(
'<b><i>' . __('Impacts') . '</i></b>',
$job->fields['impactcontent'],
));
);

$pdf->displayText(sprintf(
__('%1$s: %2$s'),
$pdf->displayText(
'<b><i>' . __('Control list') . '</i></b>',
$job->fields['controlistcontent'],
));
);
}

public static function pdfPlan(PluginPdfSimplePDF $pdf, Change $job)
{
$pdf->setColumnsSize(100);
$pdf->displayTitle('<b>' . __('Plans') . '</b>');

$pdf->setColumnsSize(10, 90);

$pdf->displayText(sprintf(
__('%1$s: %2$s'),
$pdf->displayText(
'<b><i>' . __('Deployment plan') . '</i></b>',
$job->fields['rolloutplancontent'],
));
);

$pdf->displayText(sprintf(
__('%1$s: %2$s'),
$pdf->displayText(
'<b><i>' . __('Backup plan') . '</i></b>',
$job->fields['backoutplancontent'],
));
);

$pdf->displayText(sprintf(
__('%1$s: %2$s'),
$pdf->displayText(
'<b><i>' . __('Checklist') . '</i></b>',
$job->fields['checklistcontent'],
));
);
}

public static function pdfStat(PluginPdfSimplePDF $pdf, Change $job)
Expand Down
Loading