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
30166cf8
Commit
30166cf8
authored
Oct 04, 2021
by
Antony Le Courtes
Browse files
Correction flashmessenger
parent
ea014e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/Application/src/Application/Service/DossierAutreService.php
View file @
30166cf8
...
...
@@ -41,14 +41,11 @@ class DossierAutreService extends AbstractEntityService
*/
$sql
=
$dossierAutre
->
getSqlValue
();
if
(
!
empty
(
$sql
))
{
try
{
$connection
=
$this
->
getEntityManager
()
->
getConnection
();
$result
=
$connection
->
fetchAll
(
$sql
);
foreach
(
$result
as
$k
=>
$v
)
{
$datas
[
$v
[
'VALUE_OPTION'
]]
=
$v
[
'VALUE_OPTION'
];
}
}
catch
(
\
Exception
$e
)
{
$this
->
flashMessenger
()
->
addErrorMessage
(
$this
->
translate
(
$e
));
$connection
=
$this
->
getEntityManager
()
->
getConnection
();
$result
=
$connection
->
fetchAll
(
$sql
);
foreach
(
$result
as
$k
=>
$v
)
{
$datas
[
$v
[
'VALUE_OPTION'
]]
=
$v
[
'VALUE_OPTION'
];
}
}
...
...
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