mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Merge branch 'master' into feat/add-document-encrypter-service
This commit is contained in:
commit
faf1559770
@ -11,12 +11,15 @@ and this project adheres to
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
<!-- write down unreleased development here -->
|
<!-- write down unreleased development here -->
|
||||||
|
|
||||||
|
## Test releases
|
||||||
|
|
||||||
|
### 2021-04-26
|
||||||
|
|
||||||
* [Datepickers] datepickers fixed when using keyboard to enter date (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/545)
|
* [Datepickers] datepickers fixed when using keyboard to enter date (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/545)
|
||||||
* [social_action] Display 'agents traitants' in parcours resumé and social action list (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/568)
|
* [social_action] Display 'agents traitants' in parcours resumé and social action list (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/568)
|
||||||
* [Person_search] Closed parcours shown within an accordeon that can be opened/closed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/574)
|
* [Person_search] Closed parcours shown within an accordeon that can be opened/closed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/574)
|
||||||
|
|
||||||
## Test releases
|
|
||||||
|
|
||||||
### 2021-04-24
|
### 2021-04-24
|
||||||
|
|
||||||
* [notification email on course designation] allow raw string in email content generation
|
* [notification email on course designation] allow raw string in email content generation
|
||||||
|
@ -273,7 +273,7 @@ final class DocGeneratorTemplateController extends AbstractController
|
|||||||
|
|
||||||
if ($isTest && isset($form) && $form['show_data']->getData()) {
|
if ($isTest && isset($form) && $form['show_data']->getData()) {
|
||||||
// very ugly hack...
|
// very ugly hack...
|
||||||
dd($datas);
|
dd($context->getData($template, $entity, $contextGenerationData));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -14,8 +14,10 @@ namespace Chill\DocGeneratorBundle\GeneratorDriver;
|
|||||||
use Chill\DocGeneratorBundle\GeneratorDriver\Exception\TemplateException;
|
use Chill\DocGeneratorBundle\GeneratorDriver\Exception\TemplateException;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
||||||
|
use Symfony\Component\HttpClient\Exception\ClientException;
|
||||||
use Symfony\Component\Mime\Part\DataPart;
|
use Symfony\Component\Mime\Part\DataPart;
|
||||||
use Symfony\Component\Mime\Part\Multipart\FormDataPart;
|
use Symfony\Component\Mime\Part\Multipart\FormDataPart;
|
||||||
|
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
|
||||||
use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
|
use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
|
||||||
use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
|
use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
|
||||||
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
||||||
@ -54,7 +56,9 @@ final class RelatorioDriver implements DriverInterface
|
|||||||
'headers' => $form->getPreparedHeaders()->toArray(),
|
'headers' => $form->getPreparedHeaders()->toArray(),
|
||||||
'body' => $form->bodyToIterable(),
|
'body' => $form->bodyToIterable(),
|
||||||
]);
|
]);
|
||||||
} catch (HttpExceptionInterface $e) {
|
|
||||||
|
return $response->getContent();
|
||||||
|
} catch (ClientExceptionInterface $e) {
|
||||||
$content = $e->getResponse()->getContent(false);
|
$content = $e->getResponse()->getContent(false);
|
||||||
|
|
||||||
if (400 === $e->getResponse()->getStatusCode()) {
|
if (400 === $e->getResponse()->getStatusCode()) {
|
||||||
@ -87,6 +91,18 @@ final class RelatorioDriver implements DriverInterface
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
|
} catch (Throwable $exception) {
|
||||||
|
$this
|
||||||
|
->logger
|
||||||
|
->error(
|
||||||
|
'relatorio: Unable to get content from response.',
|
||||||
|
[
|
||||||
|
'msg' => $exception->getMessage(),
|
||||||
|
'e' => $exception->getTraceAsString(),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
throw $exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -40,3 +40,8 @@ services:
|
|||||||
tags:
|
tags:
|
||||||
- { name: 'serializer.normalizer', priority: 16 }
|
- { name: 'serializer.normalizer', priority: 16 }
|
||||||
|
|
||||||
|
Chill\DocStoreBundle\Service\:
|
||||||
|
autowire: true
|
||||||
|
autoconfigure: true
|
||||||
|
resource: '../Service/'
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ final class NotificationRepository implements ObjectRepository
|
|||||||
if (null === $this->notificationByRelatedEntityAndUserAssociatedStatement) {
|
if (null === $this->notificationByRelatedEntityAndUserAssociatedStatement) {
|
||||||
$sql =
|
$sql =
|
||||||
'SELECT
|
'SELECT
|
||||||
SUM((EXISTS (SELECT 1 AS c FROM chill_main_notification_addresses_unread cmnau JOIN chill_main_notification cmn ON cmnau.notification_id = cmn.id WHERE user_id = :userid and cmnau.notification_id = cmn.id and cmn.sender_id IS NOT NULL))::int) AS unread,
|
SUM((EXISTS (SELECT 1 AS c FROM chill_main_notification_addresses_unread cmnau WHERE user_id = :userid and cmnau.notification_id = cmn.id))::int) AS unread,
|
||||||
SUM((cmn.sender_id = :userid)::int) AS sent,
|
SUM((cmn.sender_id = :userid)::int) AS sent,
|
||||||
COUNT(cmn.*) AS total
|
COUNT(cmn.*) AS total
|
||||||
FROM chill_main_notification cmn
|
FROM chill_main_notification cmn
|
||||||
|
@ -69,7 +69,6 @@ const store = createStore({
|
|||||||
return [];
|
return [];
|
||||||
},
|
},
|
||||||
buildPayload(state) {
|
buildPayload(state) {
|
||||||
console.log('end date', state.endDate);
|
|
||||||
return {
|
return {
|
||||||
type: 'accompanying_period_work',
|
type: 'accompanying_period_work',
|
||||||
id: state.work.id,
|
id: state.work.id,
|
||||||
@ -245,7 +244,7 @@ const store = createStore({
|
|||||||
type: "accompanying_period_work_evaluation",
|
type: "accompanying_period_work_evaluation",
|
||||||
key: state.evaluationsPicked.length + 1,
|
key: state.evaluationsPicked.length + 1,
|
||||||
evaluation: evaluation,
|
evaluation: evaluation,
|
||||||
startDate: new Date(),
|
startDate: dateToISO(new Date()),
|
||||||
endDate: null,
|
endDate: null,
|
||||||
maxDate: null,
|
maxDate: null,
|
||||||
warningInterval: null,
|
warningInterval: null,
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Chill\WopiBundle\Controller\Test;
|
use Chill\WopiBundle\Controller\Editor;
|
||||||
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
|
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
|
||||||
|
|
||||||
return static function (RoutingConfigurator $routes) {
|
return static function (RoutingConfigurator $routes) {
|
||||||
$routes
|
$routes
|
||||||
->add('chill_wopi_file_edit', '/edit/{fileId}')
|
->add('chill_wopi_file_edit', '/edit/{fileId}')
|
||||||
->controller(Test::class);
|
->controller(Editor::class);
|
||||||
};
|
};
|
||||||
|
@ -14,7 +14,10 @@ window.addEventListener('DOMContentLoaded', function(e) {
|
|||||||
office_frame.setAttribute('allowfullscreen', 'true');
|
office_frame.setAttribute('allowfullscreen', 'true');
|
||||||
|
|
||||||
// The sandbox attribute is needed to allow automatic redirection to the O365 sign-in page in the business user flow
|
// The sandbox attribute is needed to allow automatic redirection to the O365 sign-in page in the business user flow
|
||||||
office_frame.setAttribute('sandbox', 'allow-downloads allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation allow-popups-to-escape-sandbox');
|
office_frame.setAttribute(
|
||||||
|
'sandbox',
|
||||||
|
'allow-downloads allow-scripts allow-same-origin allow-forms allow-modals allow-popups allow-top-navigation allow-popups-to-escape-sandbox'
|
||||||
|
);
|
||||||
frameholder.appendChild(office_frame);
|
frameholder.appendChild(office_frame);
|
||||||
|
|
||||||
document.getElementById('office_form').submit();
|
document.getElementById('office_form').submit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user