mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
This commit is contained in:
commit
ae09fc75f0
|
|
@ -2713,21 +2713,6 @@ while ($i < $imaxinloop) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user