Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
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
OSE
Commits
8d711e9b
Commit
8d711e9b
authored
5 months ago
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Correction rechargement page export rh
parent
0040edcc
No related branches found
No related tags found
No related merge requests found
Pipeline
#36236
passed
5 months ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
module/ExportRh/src/Controller/ExportRhController.php
+6
-5
6 additions, 5 deletions
module/ExportRh/src/Controller/ExportRhController.php
with
6 additions
and
5 deletions
module/ExportRh/src/Controller/ExportRhController.php
+
6
−
5
View file @
8d711e9b
...
@@ -285,11 +285,11 @@ class ExportRhController extends AbstractController
...
@@ -285,11 +285,11 @@ class ExportRhController extends AbstractController
}
}
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$this
->
flashMessenger
()
->
addErrorMessage
(
$e
->
getMessage
());
$this
->
flashMessenger
()
->
addErrorMessage
(
$e
->
getMessage
());
return
$this
->
redirect
()
->
toRoute
(
'intervenant/
exporte
r'
,
[
'intervenant'
=>
$intervenant
->
getId
()]);
return
$this
->
redirect
()
->
toRoute
(
'intervenant/
voi
r'
,
[
'intervenant'
=>
$intervenant
->
getId
()]
,
[
'query'
=>
[
'tab'
=>
'export-rh'
]]
);
}
return
$this
->
exporterAction
();
}
return
$this
->
redirect
()
->
toRoute
(
'intervenant/voir'
,
[
'intervenant'
=>
$intervenant
->
getId
()],
[
'query'
=>
[
'tab'
=>
'export-rh'
]]);
}
}
...
@@ -297,8 +297,8 @@ class ExportRhController extends AbstractController
...
@@ -297,8 +297,8 @@ class ExportRhController extends AbstractController
public
function
synchroniserAction
()
public
function
synchroniserAction
()
{
{
try
{
try
{
if
(
$this
->
getRequest
()
->
isPost
())
{
$intervenant
=
$this
->
getEvent
()
->
getParam
(
'intervenant'
);
$intervenant
=
$this
->
getEvent
()
->
getParam
(
'intervenant'
);
if
(
$this
->
getRequest
()
->
isPost
())
{
if
(
!
$intervenant
)
{
if
(
!
$intervenant
)
{
throw
new
\LogicException
(
'Intervenant non précisé ou inexistant'
);
throw
new
\LogicException
(
'Intervenant non précisé ou inexistant'
);
}
}
...
@@ -315,7 +315,8 @@ class ExportRhController extends AbstractController
...
@@ -315,7 +315,8 @@ class ExportRhController extends AbstractController
$this
->
flashMessenger
()
->
addErrorMessage
(
$e
->
getMessage
());
$this
->
flashMessenger
()
->
addErrorMessage
(
$e
->
getMessage
());
}
}
return
$this
->
exporterAction
();
return
$this
->
redirect
()
->
toRoute
(
'intervenant/voir'
,
[
'intervenant'
=>
$intervenant
->
getId
()],
[
'query'
=>
[
'tab'
=>
'export-rh'
]]);
}
}
}
}
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