Skip to content

Commit

Permalink
Evarisk#3982 [RiskAssessment] fix: br between each gp and entity
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Jul 10, 2024
1 parent 1b10075 commit 84beddc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions class/digiriskdocuments.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,21 +210,21 @@ public function fillRiskData(Odf $odfHandler, $object, Translate $outputLangs, $
array_pop($digiriskElementIds);

foreach ($digiriskElementIds as $key => $digiriskElementId) {
$nomElement .= str_repeat(' - ', count($digiriskElementIds) + 1 - $key) . $activeDigiriskElements[$digiriskElementId]->ref . ' - ' . $activeDigiriskElements[$digiriskElementId]->label . chr(0x0A) . chr(0x0A);
$nomElement .= '<br>' . str_repeat(' - ', count($digiriskElementIds) + 1 - $key) . $activeDigiriskElements[$digiriskElementId]->ref . ' - ' . $activeDigiriskElements[$digiriskElementId]->label . chr(0x0A) . chr(0x0A);
}
}
}

if ($conf->global->DIGIRISKDOLIBARR_SHOW_RISK_ORIGIN) {
$nomElement .= (!empty($conf->global->DIGIRISKDOLIBARR_SHOW_SHARED_RISKS) ? 'S' . $element->entity : '') . ' - ' . $element->ref . ' - ' . $element->label;
$nomElement .= '<br>' . (!empty($conf->global->DIGIRISKDOLIBARR_SHOW_SHARED_RISKS) ? 'S' . $element->entity : '') . ' - ' . $element->ref . ' - ' . $element->label;
if ($line->fk_element != $line->appliedOn) {
$nomElement .= ($dash > 0 ? ' - ' : '') . $langs->trans('AppliedOn') . ' ' . $linked_element->ref . ' - ' . $linked_element->label;
$nomElement .= '<br>' . $langs->trans('AppliedOn') . ' ' . $linked_element->ref . ' - ' . $linked_element->label;
}
} else {
if ($linked_element->id > 0) {
$nomElement .= ($dash > 0 ? ' - ' : '') . $linked_element->ref . ' - ' . $linked_element->label;
$nomElement .= '<br>' . ($dash > 0 ? ' - ' : '') . $linked_element->ref . ' - ' . $linked_element->label;
} else {
$nomElement .= ($dash > 0 ? ' - ' : '') . $element->ref . ' - ' . $element->label;
$nomElement .= '<br>' . ($dash > 0 ? ' - ' : '') . $element->ref . ' - ' . $element->label;
}
}

Expand Down

0 comments on commit 84beddc

Please sign in to comment.