mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°8031 - Add robustness and fix SF parameter binding being ambiguous in extensions bricks
This commit is contained in:
@@ -687,6 +687,11 @@ abstract class AbstractBrick
|
||||
*/
|
||||
public static function LoadClassDefinitionFromPortalProperties($aPortalProperties)
|
||||
{
|
||||
// Check if they are any brick templates
|
||||
if(!array_key_exists('bricks', $aPortalProperties['templates']) || !is_array($aPortalProperties['templates']['bricks'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the bricks templates
|
||||
$aBricksTemplates = $aPortalProperties['templates']['bricks'];
|
||||
$sClassFQCN = static::class;
|
||||
|
||||
@@ -98,7 +98,7 @@ class ObjectController extends BrickController
|
||||
protected ObjectFormHandlerHelper $oObjectFormHandlerHelper,
|
||||
protected NavigationRuleHelper $oNavigationRuleHelper,
|
||||
protected ContextManipulatorHelper $oContextManipulatorHelper,
|
||||
protected array $aCombodoPortalInstanceConf
|
||||
protected array $aCombodoPortalInstanceConf = []
|
||||
)
|
||||
{
|
||||
ObjectBrick::InitializeSelf($this->aCombodoPortalInstanceConf);
|
||||
|
||||
Reference in New Issue
Block a user