Compare commits

...

7 Commits

6 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
kind: Fixed
body: Fix delete action for accompanying periods in draft state
time: 2024-08-21T15:14:13.753383913+02:00
custom:
Issue: ""

View File

@@ -0,0 +1,5 @@
kind: Fixed
body: Fix connection to azure when making an calendar event in chill
time: 2024-08-21T16:55:37.977150909+02:00
custom:
Issue: ""

View File

@@ -1,3 +0,0 @@
## v2.23.1 - 2024-07-25
### Fixed
* Fix export activities linked to accompanying period between two dates

View File

@@ -73,7 +73,7 @@ final readonly class PeriodHavingActivityBetweenDatesFilter implements FilterInt
$qb->andWhere(
$qb->expr()->exists(
'SELECT 1 FROM '.Activity::class." {$alias} WHERE {$alias}.date >= :{$from} AND {$alias}.date < :{$to} AND {$alias}.accompanyingPeriod = activity.accompanyingPeriod AND {$alias}.id = activity.id"
'SELECT 1 FROM '.Activity::class." {$alias} WHERE {$alias}.date >= :{$from} AND {$alias}.date < :{$to} AND {$alias}.accompanyingPeriod = activity.accompanyingPeriod"
)
);

View File

@@ -42,7 +42,7 @@ class RemoteCalendarConnectAzureController
->redirect(['https://graph.microsoft.com/.default', 'offline_access'], []);
}
#[Route(path: '/connect/azure/check', name: 'chill_calendar_remote_connect_azure_check')]
#[Route(path: '/connect/azure/check', name: 'chill_calendar_remote_connect_azure_check', schemes: ['https'])]
public function connectAzureCheck(Request $request): Response
{
/** @var Azure $client */

View File

@@ -109,11 +109,10 @@ final class AccompanyingCourseController extends \Symfony\Bundle\FrameworkBundle
'accompanying_period_id' => $accompanyingCourse->getId(),
'person_id' => $person_id,
]))
->setMethod('DELETE')
->add('submit', SubmitType::class, ['label' => 'Delete'])
->getForm();
if (Request::METHOD_DELETE === $request->getMethod()) {
if (Request::METHOD_POST === $request->getMethod()) {
$form->handleRequest($request);
if ($form->isValid()) {