fix(file): fix name:null error
This commit is contained in:
parent
89f50364cd
commit
69b6f089e4
1 changed files with 2 additions and 2 deletions
|
@ -113,8 +113,8 @@ class FileController extends Controller
|
|||
$file = File::whereId($id)->first();
|
||||
$fields = $request->all();
|
||||
|
||||
if (is_null($fields['name'])) {
|
||||
unset($fields['name']);
|
||||
if (isset($fields['name']) && is_null($fields['name'])) {
|
||||
$fields['name'] = "";
|
||||
}
|
||||
|
||||
//Only from Analyzer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue