Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sygal
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
sygal
Commits
87d99a0f
Commit
87d99a0f
authored
Mar 1, 2023
by
Jean-Philippe Metivier
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] Correction d'un oubli de la constante AVIS_DEADLINE
parent
828dd4c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
module/Soutenance/src/Soutenance/Service/Proposition/PropositionService.php
+2
-2
2 additions, 2 deletions
...src/Soutenance/Service/Proposition/PropositionService.php
with
3 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
87d99a0f
...
...
@@ -4,6 +4,7 @@ Journal des modifications
5.
2.10
------
-
Les adresses mail d'assistance, Bibliothèque et Doctorat sont désormais renseignées sur la fiche de l'établissement d'inscription.
-
[FIX] Correction d'un oubli de la constante AVIS_DEADLINE
5.
2.9
-----
...
...
This diff is collapsed.
Click to expand it.
module/Soutenance/src/Soutenance/Service/Proposition/PropositionService.php
+
2
−
2
View file @
87d99a0f
...
...
@@ -19,6 +19,7 @@ use Exception;
use
Fichier\Service\Fichier\FichierStorageServiceAwareTrait
;
use
Fichier\Service\Storage\Adapter\Exception\StorageAdapterException
;
use
Individu\Entity\Db\Individu
;
use
Laminas\Cache\Exception\LogicException
;
use
Laminas\Mvc\Controller\AbstractActionController
;
use
Notification\Service\NotifierServiceAwareTrait
;
use
Soutenance\Entity\Etat
;
...
...
@@ -33,7 +34,6 @@ use Structure\Entity\Db\EcoleDoctorale;
use
Structure\Service\Etablissement\EtablissementServiceAwareTrait
;
use
These\Entity\Db\These
;
use
These\Service\Acteur\ActeurServiceAwareTrait
;
use
UnicaenApp\Exception\LogicException
;
use
UnicaenApp\Exception\RuntimeException
;
use
UnicaenApp\Service\EntityManagerAwareTrait
;
use
UnicaenParametre\Service\Parametre\ParametreServiceAwareTrait
;
...
...
@@ -667,7 +667,7 @@ class PropositionService extends BaseService
if
(
$proposition
->
getDate
()
===
null
)
throw
new
RuntimeException
(
"Aucune date de soutenance de renseignée !"
);
try
{
$renduRapport
=
$proposition
->
getDate
();
$deadline
=
$this
->
getParametreService
()
->
getParametreByCode
(
'AVIS_DEADLINE'
)
->
getValeur
();
$deadline
=
$this
->
getParametreService
()
->
getParametreByCode
(
SoutenanceParametres
::
CATEGORIE
,
SoutenanceParametres
::
DELAI_RETOUR
)
->
getValeur
();
$renduRapport
=
$renduRapport
->
sub
(
new
DateInterval
(
'P'
.
$deadline
.
'D'
));
$date
=
DateTime
::
createFromFormat
(
'd/m/Y H:i:s'
,
$renduRapport
->
format
(
'd/m/Y'
)
.
" 23:59:59"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment