Skip to content

Commit b17c40d

Browse files
committed
Merge branch 'release/1.7.0'
2 parents 7893e51 + c07d894 commit b17c40d

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ about writing changes to this log.
1010

1111
## [Unreleased]
1212

13+
## [1.7.0] - 2025-01-20
14+
15+
- [PR-407](https://github.com/itk-dev/naevnssekretariatet/pull/407)
16+
Sort documents chronologically after upload date in agenda item routes.
17+
18+
## [1.6.2] - 2024-12-17
19+
1320
- [PR-405](https://github.com/itk-dev/naevnssekretariatet/pull/405)
1421
Digital post fixes
1522

@@ -351,7 +358,9 @@ Fixed error in unescaped characters in filename
351358
- [TVIST1-604](https://jira.itkdev.dk/browse/TVIST1-604):
352359
Resolved issue regarding time formats.
353360

354-
[Unreleased]: https://github.com/itk-dev/naevnssekretariatet/compare/1.6.1...HEAD
361+
[Unreleased]: https://github.com/itk-dev/naevnssekretariatet/compare/1.7.0...HEAD
362+
[1.7.0]: https://github.com/itk-dev/naevnssekretariatet/compare/1.6.2...1.7.0
363+
[1.6.2]: https://github.com/itk-dev/naevnssekretariatet/compare/1.6.1...1.6.2
355364
[1.6.1]: https://github.com/itk-dev/naevnssekretariatet/compare/1.6.0...1.6.1
356365
[1.6.0]: https://github.com/itk-dev/naevnssekretariatet/compare/1.5.6...1.6.0
357366
[1.5.6]: https://github.com/itk-dev/naevnssekretariatet/compare/1.5.5...1.5.6

src/Entity/AgendaCaseItem.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class AgendaCaseItem extends AgendaItem
2626

2727
/**
2828
* @ORM\ManyToMany(targetEntity=Document::class, inversedBy="agendaCaseItems")
29+
*
30+
* @ORM\OrderBy({"uploadedAt" = "ASC"})
2931
*/
3032
private $documents;
3133

src/Repository/DocumentRepository.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Entity\CaseEntity;
77
use App\Entity\Document;
88
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
9+
use Doctrine\Common\Collections\Order;
910
use Doctrine\ORM\QueryBuilder;
1011
use Doctrine\Persistence\ManagerRegistry;
1112
use Symfony\Component\Uid\Uuid;
@@ -54,6 +55,8 @@ public function getAvailableDocumentsForAgendaItem(AgendaCaseItem $agendaCaseIte
5455
;
5556
}
5657

58+
$qb->orderBy('d.uploadedAt', Order::Ascending->value);
59+
5760
return $qb
5861
->getQuery()
5962
->getResult()

0 commit comments

Comments
 (0)