mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Oops: Make sure that the default add-on for SLA computation is enabled by default
SVN:trunk[1387]
This commit is contained in:
@@ -44,7 +44,7 @@ class SLAComputation
|
||||
throw new CoreException("Could not select this module, '$sModuleName' in not a valid class name");
|
||||
return;
|
||||
}
|
||||
if (!is_subclass_of($sClassName, 'SLAComputationAddOnAPI'))
|
||||
if (($sClassName != 'SLAComputationAddOnAPI') && !is_subclass_of($sClassName, 'SLAComputationAddOnAPI'))
|
||||
{
|
||||
throw new CoreException("Could not select this module, the class '$sClassName' is not derived from SLAComputationAddOnAPI (parent class:".get_parent_class($sClassName)." )");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user