Merge pull request #20194 from bb2a/patch-1

FIX- Preview icon in documents list PDF in the admin page third-party
This commit is contained in:
Laurent Destailleur 2022-02-25 13:11:28 +01:00 committed by GitHub
commit 898087de7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -612,7 +612,7 @@ foreach ($dirsociete as $dirroot) {
// Preview
print '<td class="center nowrap">';
if ($module->type == 'pdf') {
$linkspec = '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&token='.newToken().'&module='.$name.'">'.img_object($langs->trans("Preview"), 'bill').'</a>';
$linkspec = '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&token='.newToken().'&module='.$name.'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
} else {
$linkspec = img_object($langs->trans("PreviewNotAvailable"), 'generic');
}