Skip to content

Commit

Permalink
[TASK] Use new page field for suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodala committed Jan 10, 2025
1 parent 785a0d4 commit 4562aac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/FormLog/Suggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getForProperty(string $property): array
'tx_formlog_entries',
'pages',
'page',
$queryBuilder->expr()->eq('page.uid', $queryBuilder->quoteIdentifier('tx_formlog_entries.pid'))
$queryBuilder->expr()->eq('page.uid', $queryBuilder->quoteIdentifier('tx_formlog_entries.page'))
)
->orderBy($property)
->groupBy($property);
Expand Down
6 changes: 3 additions & 3 deletions Tests/Functional/Domain/FormLog/SuggestionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ public function returnsSuggestionsForProperty(string $property, array $expected)
'tx_formlog_entries' => [
[
'uid' => 1,
'pid' => 2,
'page' => 2,
'identifier' => 'foo',
],
[
'uid' => 2,
'pid' => 2,
'page' => 2,
'identifier' => 'foo',
],
[
'uid' => 3,
'pid' => 1,
'page' => 1,
'identifier' => 'bar',
],
],
Expand Down

0 comments on commit 4562aac

Please sign in to comment.