Skip to content

Commit 1bac07c

Browse files
committed
get Entity Label using CoreUtil::getInfoItem
1 parent 86be28a commit 1bac07c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/afform/core/Civi/Api4/Action/CustomGroup/GetAfforms.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ private function generateCreateForm($item): array {
216216
}
217217

218218
private function generateTabForm($item): array {
219+
$extendsLabel = CoreUtil::getInfoItem($item['extends'], 'title');
219220
$afform = [
220221
// name required to replace the existing tab
221222
'name' => 'afsearchTabCustom_' . $item['name'],
222-
'description' => E::ts('%1 tab display for %2', [1 => $item['extends'], 2 => $item['title']]),
223+
'description' => E::ts('%1 tab display for %2', [1 => $extendsLabel, 2 => $item['title']]),
223224
'type' => 'search',
224225
'is_public' => FALSE,
225226
// Q: should this be more permissive if user has access

0 commit comments

Comments
 (0)