File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 66use App \Entity \CaseEntity ;
77use App \Entity \Document ;
88use Doctrine \Bundle \DoctrineBundle \Repository \ServiceEntityRepository ;
9+ use Doctrine \Common \Collections \Order ;
910use Doctrine \ORM \QueryBuilder ;
1011use Doctrine \Persistence \ManagerRegistry ;
1112use 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 ()
You can’t perform that action at this time.
0 commit comments