Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
410bd225
Commit
410bd225
authored
Feb 10, 2022
by
Laurent Lécluse
Browse files
on n'utilise plus form->delete
parent
1368b2c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/Application/src/Controller/ChargensController.php
View file @
410bd225
...
...
@@ -225,8 +225,12 @@ class ChargensController extends AbstractController
/** @var Scenario $scenario */
$scenario
=
$this
->
getEvent
()
->
getParam
(
'scenario'
);
$form
=
$this
->
getFormChargensScenario
();
$form
->
delete
(
$scenario
,
$this
->
getServiceScenario
(),
"Scénario supprimé avec succès."
);
try
{
$this
->
getServiceScenario
()
->
delete
(
$scenario
);
$this
->
flashMessenger
()
->
addSuccessMessage
(
"Scénario supprimé avec succès."
);
}
catch
(
\
Exception
$e
)
{
$this
->
flashMessenger
()
->
addErrorMessage
(
$e
->
getMessage
());
}
return
new
MessengerViewModel
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment