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:
commit
898087de7e
@ -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');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user