ObjectSetTable: drop name from link

This commit is contained in:
Thomas Gelf 2021-12-23 10:07:07 +01:00
parent 7d68f8014b
commit 212596a41e
1 changed files with 4 additions and 9 deletions

View File

@ -39,20 +39,15 @@ class ObjectSetTable extends ZfQueryBasedTable
public function getColumnsToBeRendered()
{
return ['Name'];
return [$this->translate('Name')];
}
public function renderRow($row)
{
$type = $this->getType();
if ($row->object_type === 'apply') {
$params['id'] = $row->id;
} else {
$params = [
'uuid' => Uuid::fromBytes(Db\DbUtil::binaryResult($row->uuid))->toString(),
'name' => $row->object_name
];
}
$params = [
'uuid' => Uuid::fromBytes(Db\DbUtil::binaryResult($row->uuid))->toString(),
];
$url = Url::fromPath("director/${type}set", $params);