mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Finalization of the user management by profile (UI to manage the accounts), and some unrelated changes:
- Using class labels in the UI - Data model: you may specify a set of allowed values from a query (see caller_id in bizIncident class), still not 100% used in the UI but does not generate any error - Data model: you may specify a password field (AttributePassword replacing AttributeString) - Setup: calling UserRight::Setup() right after calling UserRight::CreateAdministrator() - Setup: administrator account created with "my organization" and a dedicated contact - Menus: optimized the load of std menus (queries written in OQL to get the benefit of the query cache) - Menus: admin tools, seen only by people having the "admin" profile - Object edition: fixed bug with the display of N-N links in the form SVN:trunk[110]
This commit is contained in:
@@ -84,6 +84,8 @@ switch($operation)
|
||||
}
|
||||
foreach($oWizardHelper->GetFieldsForAllowedValues() as $sAttCode)
|
||||
{
|
||||
// MetaModel::GetAllowedValues_att() => array(id => value)
|
||||
// Improvement: what if the list is too long?
|
||||
$oWizardHelper->SetAllowedValuesHtml($sAttCode, "Possible values ($sAttCode)");
|
||||
}
|
||||
$oPage->add($oWizardHelper->ToJSON());
|
||||
@@ -192,7 +194,9 @@ switch($operation)
|
||||
$sClass = utils::ReadParam('sclass', 'bizContact');
|
||||
$sJSONSet = stripslashes(utils::ReadParam('sset', ''));
|
||||
$sExtKeyToMe = utils::ReadParam('sextkeytome', '');
|
||||
UILinksWidget::RenderSet($oPage, $sClass, $sJSONSet, $sExtKeyToMe);
|
||||
$sExtKeyToRemote = utils::ReadParam('sextkeytoremote', '');
|
||||
$iObjectId = utils::ReadParam('id', -1);
|
||||
UILinksWidget::RenderSet($oPage, $sClass, $sJSONSet, $sExtKeyToMe, $sExtKeyToRemote, $iObjectId);
|
||||
break;
|
||||
|
||||
case 'autocomplete':
|
||||
@@ -208,6 +212,7 @@ switch($operation)
|
||||
if ($oThis = MetaModel::GetObject($sClass, $key))
|
||||
{
|
||||
$aArgs['*this*'] = $oThis;
|
||||
$aArgs['this'] = $oThis;
|
||||
}
|
||||
}
|
||||
$aAllowedValues = MetaModel::GetAllowedValues_att($sClass, $sAttCode, $aArgs, $sName);
|
||||
|
||||
Reference in New Issue
Block a user