Debug v20

This commit is contained in:
Laurent Destailleur 2024-06-06 09:27:25 +02:00
parent f71d938728
commit cbb458486b
4 changed files with 5 additions and 5 deletions

View file

@ -584,7 +584,7 @@ abstract class CommonObject
* @deprecated Use $note_private instead.
* @see $note_private
*/
private $note;
public $note;
/**
* @var float Total amount excluding taxes (HT = "Hors Taxe" in French)
@ -877,7 +877,7 @@ abstract class CommonObject
return array(
'alreadypaid' => 'totalpaid',
'cond_reglement' => 'depr_cond_reglement',
'note' => 'note_private',
//'note' => 'note_private', // Some classes needs ->note and others need ->note_public/private so we can't manage deprecation for this field with dolDeprecationHandler
'commandeFournisseur' => 'origin_object',
'expedition' => 'origin_object',
'fk_project' => 'fk_project',

View file

@ -149,7 +149,7 @@ class TimeSpent extends CommonObject
*/
public function __construct(DoliDB $db)
{
global $conf, $langs;
global $langs;
$this->db = $db;

View file

@ -1423,7 +1423,7 @@ class Task extends CommonObjectLine
*/
public function addTimeSpent($user, $notrigger = 0)
{
global $conf, $langs;
global $langs;
dol_syslog(get_class($this)."::addTimeSpent", LOG_DEBUG);

View file

@ -231,7 +231,7 @@ if ($action == 'addtimespent' && $user->hasRight('projet', 'time')) {
if (!$error) {
$object->fetch_projet();
if (empty($object->project->statut)) {
if (empty($object->project->status)) {
setEventMessages($langs->trans("ProjectMustBeValidatedFirst"), null, 'errors');
$action = 'createtime';
$error++;