Skip to content

Commit

Permalink
Merge branch '17.0' of [email protected]:Dolibarr/dolibarr.git into 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 12, 2024
2 parents 0eee1ad + 723c827 commit f4b2269
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion htdocs/expensereport/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,11 @@
}
}

if (!$thumbshown) {
if (!$thumbshown && $fileinfo['extension'] == 'pdf' && !empty($filepdf) && !empty($relativepath) && !empty($fileinfo['filename'])) {
$formFile = new FormFile($db);
$imgpreview = $formFile->showPreview([], $modulepart, $relativepath.'/'.$fileinfo['filename'].'.'.strtolower($fileinfo['extension']), 0);
print $imgpreview;
} elseif (!$thumbshown) {
print img_mime($ecmfilesstatic->filename);
}
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/card-rec.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@
$special_code = 3;
}

$remise_percent = price2num(GETPOST('remise_percent'), '', 2);
$remise_percent = price2num(GETPOST('remise_percent'), '', 2) ?: 0;

// Check minimum price
$productid = GETPOST('productid', 'int');
Expand Down

0 comments on commit f4b2269

Please sign in to comment.