Compare commits

...

13 Commits
23.0.0 ... 21.0

Author SHA1 Message Date
Laurent Destailleur
c723aec696 Automated merge from 20.0 to 21.0 by tool pullmerge.sh 2026-03-06 00:18:35 +01:00
Laurent Destailleur
f23d590749 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2026-03-06 00:18:13 +01:00
Laurent Destailleur
a3d5c0b30b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-03-06 00:12:01 +01:00
Eric Seigne
e049222877 github.event_name is pull_request_target not pull_request 2026-03-05 09:55:51 +01:00
lvessiller-opendsi
c428e079e3 Merge pull request #37057 from ATM-Consulting/FIX/docPreviewInCommCard
FIX - Fix doc preview in comm card
2026-03-05 09:52:24 +01:00
Laurent Destailleur
7bb2713bd9 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2026-03-04 19:49:33 +01:00
Laurent Destailleur
a4e077a0f7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2026-03-03 14:24:43 +01:00
Laurent Destailleur
749b45a16d Fix from may be empty 2026-03-03 14:24:04 +01:00
Günter Lukas
293b5a0778 Fix #37388 Change GETPOSTINT to GETPOST for form question (#37390)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-02 20:10:33 +01:00
Laurent Destailleur
5077058df5 Fix CI 2026-03-02 15:23:26 +01:00
ATM-Lucas
c5b4d149b5 delete more & 2026-02-26 14:11:00 +01:00
ATM-Lucas
ba8ab407fe delete & 2026-02-26 10:10:09 +01:00
ATM-Lucas
eaee0a952d Fix doc preview in comm card 2026-02-02 12:05:11 +01:00
3 changed files with 14 additions and 8 deletions

View File

@@ -947,7 +947,7 @@ if ($object->id > 0) {
}
}
$relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf';
print $formfile->showPreview($file_list, $propal_static->element, $relativepath, 0);
print $formfile->showPreview($file_list, $propal_static->element, $relativepath, 0, 'entity=' . $objp->entity);
}
print '</td><td class="tdoverflowmax125">';
if ($propal_static->fk_project > 0) {
@@ -1066,7 +1066,7 @@ if ($object->id > 0) {
}
}
$relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf';
print $formfile->showPreview($file_list, $commande_static->element, $relativepath, 0, $param);
print $formfile->showPreview($file_list, $commande_static->element, $relativepath, 0, 'entity=' . $objp->entity);
}
print '</td><td class="tdoverflowmax125">';
if ($commande_static->fk_project > 0) {
@@ -1099,6 +1099,8 @@ if ($object->id > 0) {
* Latest shipments
*/
if (isModEnabled("shipping") && $user->hasRight('expedition', 'lire')) {
$param = 'entity=' . ((int) $objp->entity);
$sql = 'SELECT e.rowid as id';
$sql .= ', e.ref, e.entity, e.fk_projet';
$sql .= ', e.date_creation';
@@ -1167,7 +1169,8 @@ if ($object->id > 0) {
}
}
$relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf';
print $formfile->showPreview($file_list, $sendingstatic->table_element, $relativepath, 0, $param);
print $formfile->showPreview($file_list, $sendingstatic->element, $relativepath, 0, $param);
}
print '</td><td class="tdoverflowmax125">';
if ($sendingstatic->fk_project > 0) {
@@ -1281,7 +1284,7 @@ if ($object->id > 0) {
}
}
$relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf';
print $formfile->showPreview($file_list, $contrat->element, $relativepath, 0);
print $formfile->showPreview($file_list, $contrat->element, $relativepath, 0, 'entity=' . $objp->entity);
}
}
// $filename = dol_sanitizeFileName($objp->ref);
@@ -1381,7 +1384,7 @@ if ($object->id > 0) {
}
}
$relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf';
print $formfile->showPreview($file_list, $fichinter_static->element, $relativepath, 0);
print $formfile->showPreview($file_list, $fichinter_static->element, $relativepath, 0, 'entity=' . $objp->entity);
}
print '</td><td class="tdoverflowmax125">';
if ($fichinter_static->fk_project > 0) {
@@ -1610,7 +1613,7 @@ if ($object->id > 0) {
}
}
$relativepath = dol_sanitizeFileName($objp->ref).'/'.dol_sanitizeFileName($objp->ref).'.pdf';
print $formfile->showPreview($file_list, $facturestatic->element, $relativepath, 0);
print $formfile->showPreview($file_list, $facturestatic->element, $relativepath, 0, 'entity=' . $objp->entity);
}
print '</td><td class="tdoverflowmax125">';
if ($facturestatic->fk_project > 0) {

View File

@@ -172,7 +172,7 @@ if (empty($reshook)) {
}
}
$formquestion[$i++] = array('type' => 'hidden', 'name' => $key, 'value' => GETPOSTINT($key));
$formquestion[$i++] = array('type' => 'hidden', 'name' => $key, 'value' => GETPOST($key));
}
}

View File

@@ -668,7 +668,10 @@ class Notify
$application = (preg_match('/^\+/', $applicationcustom) ? $application : '').$applicationcustom;
}
$from = getDolGlobalString('NOTIFICATION_EMAIL_FROM', getDolGlobalString('MAIN_MAIL_EMAIL_FROM'));
$from = getDolGlobalString('NOTIFICATION_EMAIL_FROM');
if (empty($from)) {
$from = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
}
$object_type = '';
$link = '';