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
f5e72f5c
Commit
f5e72f5c
authored
Nov 03, 2023
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcao funcao criar selecao
parent
1d33254f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
SelecaoController.php
app/Http/Controllers/Propostas/SelecaoController.php
+11
-2
No files found.
app/Http/Controllers/Propostas/SelecaoController.php
View file @
f5e72f5c
...
...
@@ -399,7 +399,7 @@ class SelecaoController extends Controller
public
function
SelecionarPropostas
(){
$selecaoProposta
=
SelecaoPropostas
::
orderBy
(
'
dte_resultado
'
)
->
get
();
$selecaoProposta
=
SelecaoPropostas
::
orderBy
(
'
id
'
)
->
get
();
$numSelecaoAndamento
=
0
;
...
...
@@ -434,6 +434,15 @@ class SelecaoController extends Controller
$usuario
=
Auth
::
user
();
$selecaoProposta
=
SelecaoPropostas
::
where
(
'bln_selecao_concluida'
,
false
)
->
get
();
// return count($selecaoProposta);
if
(
count
(
$selecaoProposta
)
>
0
){
flash
()
->
erro
(
"Erro"
,
"Já existe uma seleção em andamento. Favor concluir a seleção antes de iniciar uma nova seleção"
);
return
back
();
}
$selecaoProposta
=
new
SelecaoPropostas
;
$selecaoProposta
->
user_id
=
$usuario
->
id
;
$selecaoProposta
->
num_propostas
=
0
;
...
...
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