forked from Wavyzz/dolibarr
Update commondocgenerator.class.php
This commit is contained in:
committed by
GitHub
parent
95cc007b39
commit
f15ce54c05
@@ -419,7 +419,7 @@ abstract class CommonDocGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fetch project information if there is a project assigned to this object
|
// Fetch project information if there is a project assigned to this object
|
||||||
if ($object->element != "project" && $object->fk_project > 0)
|
if ($object->element != "project" && ! empty($object->fk_project) && $object->fk_project > 0)
|
||||||
{
|
{
|
||||||
if(!isset($object->project))
|
if(!isset($object->project))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user