Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sistema_mcid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marcio neto
sistema_mcid
Commits
2cfcea03
Commit
2cfcea03
authored
Jan 10, 2024
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
melhorias na alteracao e exclusao do encaminhamento
parent
e60d6e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
EncaminhamentoController.php
app/Http/Controllers/Mod_codem/EncaminhamentoController.php
+5
-3
No files found.
app/Http/Controllers/Mod_codem/EncaminhamentoController.php
View file @
2cfcea03
...
...
@@ -94,7 +94,7 @@ class EncaminhamentoController extends Controller
$ativarAba
=
'encaminhamento'
;
$usuarioDemandado
=
User
::
find
(
$request
->
usuario
);
Mail
::
to
(
$usuarioDemandado
->
email
)
->
send
(
new
EncaminhamentoDemanda
(
$encaminhamento
,
$usuarioDemandado
));
//
Mail::to($usuarioDemandado->email)->send(new EncaminhamentoDemanda($encaminhamento, $usuarioDemandado));
flash
()
->
sucesso
(
"Sucesso"
,
"Encaminhamento adicionado com sucesso!"
);
return
redirect
(
'codem/demanda/dados/'
.
$demandaID
.
'/'
.
$ativarAba
);
}
else
{
...
...
@@ -136,11 +136,13 @@ class EncaminhamentoController extends Controller
$where
=
[];
$where
[]
=
[
'situacao_id'
,
5
];
$where
[]
=
[
'situacao_
demanda_
id'
,
5
];
$where
[]
=
[
'demanda_id'
,
$demandaId
];
$situacaoDemanda
=
RlcSituacaoDemanda
::
where
(
$where
)
->
first
();
$situacaoDemanda
->
delete
();
if
(
$situacaoDemanda
)
{
$situacaoDemanda
->
delete
();
}
$novaSituacaoDemanda
=
new
RlcSituacaoDemanda
();
$novaSituacaoDemanda
->
demanda_id
=
$demanda
->
id
;
...
...
Write
Preview
Markdown
is supported
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