Merge remote-tracking branch 'origin/support/3.0' into develop

This commit is contained in:
Molkobain
2022-03-23 09:49:11 +01:00
27 changed files with 480 additions and 127 deletions

View File

@@ -493,7 +493,7 @@ class SearchForm
$aAllowedValues = array();
while ($oObject = $oSet->Fetch())
{
$aAllowedValues[] = ["value"=>$oObject->GetKey(), "label" => $oObject->GetName()];
$aAllowedValues[$oObject->GetKey()] = $oObject->GetName();
}
return array('values' => $aAllowedValues);
}

View File

@@ -25,6 +25,10 @@ class ButtonGroup extends UIBlock
public const BLOCK_CODE = 'ibo-button-group';
/** @inheritDoc */
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/button-group/layout';
public const DEFAULT_JS_FILES_REL_PATH = [
'js/components/button-group.js',
];
public const REQUIRES_ANCESTORS_DEFAULT_JS_FILES = true;
/** @var \Combodo\iTop\Application\UI\Base\Component\Button\Button[] Buttons to be displayed as a group */
protected $aButtons;