Merge pull request #13190 from oscim/patch-23

Update commonobject.class.php
This commit is contained in:
Laurent Destailleur 2020-02-25 12:05:22 +01:00 committed by GitHub
commit 59137f0f47
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') {
$classpath = 'projet/class'; $classfile = 'project'; $classname = 'Project';
}
// Here $module, $classfile and $classname are set
if ($conf->$module->enabled && (($element != $this->element) || $alsosametype))