mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
- Creation and CSV import de-activated for abstract classes
SVN:trunk[390]
This commit is contained in:
@@ -40,7 +40,8 @@ function GetClassesSelect($sName, $sDefaultValue, $iWidthPx, $iActionCode = null
|
||||
$aValidClasses = array();
|
||||
foreach(MetaModel::GetClasses('bizmodel') as $sClassName)
|
||||
{
|
||||
if (is_null($iActionCode) || UserRights::IsActionAllowed($sClassName, $iActionCode))
|
||||
if ( (is_null($iActionCode) || UserRights::IsActionAllowed($sClassName, $iActionCode)) &&
|
||||
(!MetaModel::IsAbstract($sClassName)) )
|
||||
{
|
||||
$sSelected = ($sClassName == $sDefaultValue) ? " selected" : "";
|
||||
$sDescription = MetaModel::GetClassDescription($sClassName);
|
||||
|
||||
Reference in New Issue
Block a user