mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
fix: 重命名别人共享的文件后不见了
This commit is contained in:
parent
b2d97bd5f1
commit
f7d4f42551
@ -248,8 +248,12 @@ class FileController extends AbstractController
|
|||||||
$file->name = $name;
|
$file->name = $name;
|
||||||
$file->handleDuplicateName();
|
$file->handleDuplicateName();
|
||||||
$file->save();
|
$file->save();
|
||||||
$file->pushMsg('update', $file);
|
$data = [
|
||||||
return Base::retSuccess('修改成功', $file);
|
'id' => $file->id,
|
||||||
|
'name' => $file->name,
|
||||||
|
];
|
||||||
|
$file->pushMsg('update', $data);
|
||||||
|
return Base::retSuccess('修改成功', $data);
|
||||||
} else {
|
} else {
|
||||||
// 添加
|
// 添加
|
||||||
if (!in_array($type, [
|
if (!in_array($type, [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user