Debug v20
This commit is contained in:
parent
f71d938728
commit
cbb458486b
4 changed files with 5 additions and 5 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ class TimeSpent extends CommonObject
|
|||
*/
|
||||
public function __construct(DoliDB $db)
|
||||
{
|
||||
global $conf, $langs;
|
||||
global $langs;
|
||||
|
||||
$this->db = $db;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue