Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
f9c0e4eb
Commit
f9c0e4eb
authored
2 years ago
by
Lucas Henrique
Browse files
Options
Download
Email Patches
Plain Diff
Soluciona erro ao editar um projeto sem alterar o nome do Plano de Trabalho
parent
8739a623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Http/Controllers/TrabalhoController.php
+3
-1
app/Http/Controllers/TrabalhoController.php
with
3 additions
and
1 deletion
+3
-1
app/Http/Controllers/TrabalhoController.php
View file @
f9c0e4eb
...
...
@@ -1033,7 +1033,9 @@ class TrabalhoController extends Controller
$file
=
$request
->
anexoPlanoTrabalho
;
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
}
else
{
Storage
::
rename
(
$arquivo
->
nome
,
$path
.
$nome
);
if
(
$arquivo
->
nome
!=
$path
.
$nome
)
{
Storage
::
rename
(
$arquivo
->
nome
,
$path
.
$nome
);
}
}
$arquivo
->
update
([
'titulo'
=>
$titulo
,
...
...
This diff is collapsed.
Click to expand it.
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