Update commonobject.class.php

Add support of project/projet in objectlinked
This commit is contained in:
oscim 2020-02-24 11:49:12 +01:00 committed by GitHub
parent b55f6f8658
commit 6c7a534018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3391,6 +3391,9 @@ abstract class CommonObject
elseif ($objecttype == 'subscription') {
$classfile = 'subscription'; $classname = 'Subscription';
}
elseif ($objecttype == 'project' || $objecttype == 'projet') {
$classfile = 'project'; $classname = 'Project';
}
// Here $module, $classfile and $classname are set
if ($conf->$module->enabled && (($element != $this->element) || $alsosametype))