Skip to content

Commit f0aa821

Browse files
committed
fix test
1 parent 6f28eb5 commit f0aa821

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/EventListener/DcaField/AliasDcaFieldListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function onFieldsAliasSaveCallback($value, DataContainer $dc)
5757
$titleField = $fieldConfiguration?->titleField ?? 'title';
5858

5959
$value = $this->container->get('contao.slug')->generate(
60-
(string)$row[$titleField],
60+
(string)$row[$titleField] ?? '',
6161
(int)$row['pid'],
6262
$aliasExists
6363
);

tests/EventListener/DcaField/AliasDcaFieldListenerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public function __construct(array $row)
180180
$this->table = $row['table'];
181181
$this->strTable = $row['table'];
182182
$this->id = $row['id'];
183+
$this->intId = $row['id'];
183184
$this->activeRecord = new class ($row) {
184185

185186
public function __construct(private array $row) {}

0 commit comments

Comments
 (0)