Skip to content

Commit 955d6bf

Browse files
authored
Merge pull request #8 from RomainLvr/fix/by-visible
Fix By visible
2 parents 20cb1ed + 320a78c commit 955d6bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

inc/itilsolution.class.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static function pdfForItem(PluginPdfSimplePDF $pdf, CommonDBTM $item)
9090
} else {
9191
$text = $textapprove = '';
9292
}
93-
if (isset($row['date_approval']) || isset($row['users_id_approval'])) {
93+
if (isset($row['date_approval']) || !empty($row['users_id_approval'])) {
9494
$textapprove = '<br /><br /><br /><i>' .
9595
sprintf(
9696
__('%1$s %2$s'),
@@ -103,9 +103,8 @@ public static function pdfForItem(PluginPdfSimplePDF $pdf, CommonDBTM $item)
103103
Toolbox::stripTags($dbu->getUserName($row['users_id_approval'])),
104104
)
105105
. '</i>';
106-
$pdf->displayText('<b><i>' . sprintf(__('%1$s: %2$s'), $title . '</i></b>', ''), $sol .
107-
$textapprove);
108106
}
107+
$pdf->displayText('<b><i>' . sprintf(__('%1$s: %2$s'), $title . '</i></b>', ''), $sol . $textapprove);
109108
}
110109
}
111110

0 commit comments

Comments
 (0)