Debug v18

This commit is contained in:
Laurent Destailleur 2023-05-02 17:26:12 +02:00
parent f5d7ac2bc1
commit 359ebb9a7f
3 changed files with 7 additions and 1 deletions

View File

@ -408,7 +408,7 @@ if ((isModEnabled('fournisseur') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMO
// Latest donations
if (isModEnabled('don') && !empty($user->rights->don->lire)) {
if (isModEnabled('don') && $user->hasRight('don', 'lire')) {
include_once DOL_DOCUMENT_ROOT.'/don/class/don.class.php';
$langs->load("boxes");
@ -441,6 +441,7 @@ if (isModEnabled('don') && !empty($user->rights->don->lire)) {
print '<th class="right">'.$langs->trans("DateModificationShort").'</th>';
print '<th width="16">&nbsp;</th>';
print '</tr>';
if ($num) {
$total_ttc = $totalam = $total_ht = 0;

View File

@ -667,6 +667,8 @@ if ($id > 0) {
print '</div>';
print '<div class="fichehalfright">';
print '<div class="underbanner clearboth"></div>';
$nbcols = 3;
if (isModEnabled("banque")) {
$nbcols++;

View File

@ -30,6 +30,7 @@
*/
require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/commonpeople.class.php';
/**
@ -37,6 +38,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/
class Don extends CommonObject
{
use CommonPeople;
/**
* @var string ID to identify managed object
*/