Merge pull request #21879 from dolibit-ut/patch-425

Update info.php
This commit is contained in:
Laurent Destailleur 2022-08-25 12:11:30 +02:00 committed by GitHub
commit 5dbbfa9f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ if (!empty($conf->project->enabled)) {
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
} }
$langs->load("donations"); $langs->load('donations');
$id = GETPOST('id', 'int'); $id = GETPOST('id', 'int');
$ref = GETPOST('ref', 'alpha'); $ref = GETPOST('ref', 'alpha');
@ -45,17 +45,22 @@ $result = restrictedArea($user, 'don', $id, '');
$object = new Don($db); $object = new Don($db);
$object->fetch($id); $object->fetch($id);
/* /*
* Actions * Actions
*/ */
if ($action == 'classin' && $user->rights->don->creer) { if ($action == 'classin' && $user->rights->don->creer) {
$object->fetch($id); $object->fetch($id);
$object->setProject($projectid); $object->setProject($projectid);
} }
/* /*
* View * View
*/ */
$title = $langs->trans('Donation')." - ".$langs->trans('Info'); $title = $langs->trans('Donation')." - ".$langs->trans('Info');
$help_url = 'EN:Module_Donations|FR:Module_Dons|ES:Módulo_Donaciones|DE:Modul_Spenden'; $help_url = 'EN:Module_Donations|FR:Module_Dons|ES:Módulo_Donaciones|DE:Modul_Spenden';