2
0
forked from Wavyzz/dolibarr

Revert "NEW - Add a new hook on order list (#31315)"

This reverts commit 1e64870a9e.
This commit is contained in:
Laurent Destailleur
2024-10-17 00:52:42 +02:00
parent 278eea6fae
commit 111e3fcd32

View File

@@ -2566,21 +2566,6 @@ if ($resql) {
}
}
}
// Call Hook modifyTextInfo
$parameters = array('textinfo' => $text_info);
$reshook = $hookmanager->executeHooks('modifyTextInfo', $parameters, $object, $action);
if ($reshook == 1) {
// for add information
$text_info .= $hookmanager->resPrint;
} elseif ($reshook == 0) {
// for replace information
$text_info = $hookmanager->resPrint;
} elseif ($reshook == -1) {
// for errors
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
}
if ($notshippable == 0) {
$text_icon = img_picto('', 'dolly', '', false, 0, 0, '', 'green paddingleft');
$text_info = $text_icon.' '.$langs->trans('Shippable').'<br>'.$text_info;