N°2847 - Field: Restore HTML metadata lost during migration, add missing ID in template

This commit is contained in:
Molkobain
2020-11-03 15:06:28 +01:00
parent 10afd1cede
commit b7543b54e8
2 changed files with 22 additions and 2 deletions

View File

@@ -13,14 +13,19 @@ use Combodo\iTop\Application\UI\UIBlock;
* Class Field
*
* @package Combodo\iTop\Application\UI\Component\Field
* @author Eric Espie <eric.espie@combodo.com>
* @author Anne-Catherine Cognet <annecatherine.cognet@combodo.com>
* @since 3.0.0
*/
class Field extends UIBlock
{
// Overloaded constants
/** @inheritdoc */
public const BLOCK_CODE = 'ibo-field';
/** @inheritdoc */
public const HTML_TEMPLATE_REL_PATH = 'components/field/layout';
/** @var array */
/** @var array Array of various parameters of the field. This should be exploded in dedicated properties instead of a grey array. */
protected $aParams;
public function __construct(array $aParams, ?string $sId = null)
@@ -31,6 +36,7 @@ class Field extends UIBlock
/**
* @return array
* @internal
*/
public function GetParams(): array
{