mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix: knowledge sort
This commit is contained in:
parent
77aec7d553
commit
230470c037
@ -79,7 +79,7 @@ class KnowledgeController extends Controller
|
||||
DB::beginTransaction();
|
||||
try {
|
||||
foreach ($request->input('knowledge_ids') as $k => $v) {
|
||||
$knowledge = new Knowledge();
|
||||
$knowledge = Knowledge::find($v);
|
||||
$knowledge->timestamps = false;
|
||||
$knowledge->update(['sort' => $k + 1]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user