Fix loading of project
This commit is contained in:
parent
c57693a245
commit
995645800e
@ -759,10 +759,14 @@ abstract class CommonObject
|
|||||||
*/
|
*/
|
||||||
function fetch_projet()
|
function fetch_projet()
|
||||||
{
|
{
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
||||||
|
|
||||||
|
if (empty($this->fk_project) && ! empty($this->fk_projet)) $this->fk_project = $this->fk_projet; // For backward compatibility
|
||||||
if (empty($this->fk_project)) return 0;
|
if (empty($this->fk_project)) return 0;
|
||||||
|
|
||||||
$project = new Project($this->db);
|
$project = new Project($this->db);
|
||||||
$result = $project->fetch($this->fk_project);
|
$result = $project->fetch($this->fk_project);
|
||||||
|
|
||||||
$this->projet = $project; // deprecated
|
$this->projet = $project; // deprecated
|
||||||
$this->project = $project;
|
$this->project = $project;
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user