Skip to content

Commit

Permalink
Fix H1 2383192
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Mar 4, 2024
1 parent 1e3b522 commit ac1ec9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion concrete/src/User/Group/GroupType.php
Expand Up @@ -35,6 +35,11 @@ public function getName()
return $this->gtName;
}

public function getDisplayName()
{
return h($this->getName());
}

/**
* @param string $gtName
* @return bool
Expand Down Expand Up @@ -127,7 +132,7 @@ public static function getSelectList()
$list = [];

foreach (self::getList() as $groupType) {
$list[$groupType->getId()] = $groupType->getName();
$list[$groupType->getId()] = $groupType->getDisplayName();
}

return $list;
Expand Down
2 changes: 1 addition & 1 deletion concrete/src/User/Group/Search/ColumnSet/Available.php
Expand Up @@ -36,7 +36,7 @@ public static function getType($node)
$groupType = $group->getGroupType();

if (is_object($groupType)) {
return $groupType->getName();
return $groupType->getDisplayName();
}
}
}
Expand Down

0 comments on commit ac1ec9b

Please sign in to comment.