diff --git a/ChangeLogAtm.md b/ChangeLogAtm.md index 06ff9b3b6d499..494d741c82412 100644 --- a/ChangeLogAtm.md +++ b/ChangeLogAtm.md @@ -1,3 +1,4 @@ +- FIX : Doc preview (magnifier/loupe) on shipments (BL) in thirdparty card (client/prospect tab) - use 'expedition' modulepart instead of $sendingstatic->element ('shipping') in comm/card.php - PR #755 - *2026-07-09* - FIX : BACKPORT pour SENTRY : add null check before setting _renderItem on jQuery UI autocomplete widget #37597 - NEW : Add complete_substitutions_array in ticket.class.php - *2026-02-20* - FIX : DA027856 - Edition des extrafields "always editable" sur les projets avec une tache ouverte en bas de page. diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index df35900a1a5bf..8ba9ec0dcdc8a 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -1170,7 +1170,11 @@ } $relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf'; - print $formfile->showPreview($file_list, $sendingstatic->element, $relativepath, 0, $param); + /**DEBUT SPECIFIQUE ATM **/ + // Fix doc preview: use the 'expedition' modulepart instead of $sendingstatic->element ('shipping', a module-name alias not handled by dol_check_secure_access_document()), and pass the entity param like the other lists. + // Original core: print $formfile->showPreview($file_list, $sendingstatic->element, $relativepath, 0, $param); + print $formfile->showPreview($file_list, 'expedition', $relativepath, 0, 'entity=' . $objp->entity); + /**FIN SPECIFIQUE ATM **/ } print '