Skip to content

Commit 994e6b0

Browse files
committed
Models - use name as display field
1 parent f888ce0 commit 994e6b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Model/Table/AccessPointContactsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function initialize(array $config): void
3838
parent::initialize($config);
3939

4040
$this->setTable('access_point_contacts');
41-
$this->setDisplayField('id');
41+
$this->setDisplayField('name');
4242
$this->setPrimaryKey('id');
4343

4444
$this->addBehavior('Timestamp');

src/Model/Table/PowerSuppliesTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function initialize(array $config): void
3939
parent::initialize($config);
4040

4141
$this->setTable('power_supplies');
42-
$this->setDisplayField('id');
42+
$this->setDisplayField('name');
4343
$this->setPrimaryKey('id');
4444

4545
$this->addBehavior('Timestamp');

templates/PowerSupplies/view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</aside>
3636
<div class="column-responsive column-90">
3737
<div class="powerSupplies view content">
38-
<h3><?= h($powerSupply->id) ?></h3>
38+
<h3><?= h($powerSupply->name) ?></h3>
3939
<table>
4040
<tr>
4141
<th><?= __('Id') ?></th>

0 commit comments

Comments
 (0)