mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
UIBlock: Change $aAdditionalCSSClasses methods to match app. conventions (parameters should be arrays, not space separated string)
Note: This had to be fixed on all calls to this, hence the number of modifications.
This commit is contained in:
@@ -30,7 +30,8 @@ class FieldBadgeUIBlockFactory extends AbstractUIBlockFactory
|
||||
$sPrimaryColor = $oStyle->GetMainColor();
|
||||
$sComplementaryColor = $oStyle->GetComplementaryColor();
|
||||
if (!is_null($sPrimaryColor) && !is_null($sComplementaryColor)) {
|
||||
$oBadge = new FieldBadge(null, $sStyleClass.' ibo-field-badge');
|
||||
$aCSSClasses = array_merge(explode(' ', $sStyleClass), ['ibo-field-badge']);
|
||||
$oBadge = new FieldBadge(null, $aCSSClasses);
|
||||
$sDecorationClasses = $oStyle->GetDecorationClasses();
|
||||
if (!is_null($sDecorationClasses)) {
|
||||
$oBadge->AddHtml("<i class=\"$sDecorationClasses\"></i> ");
|
||||
|
||||
Reference in New Issue
Block a user