X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/20e093a7a1f5bc56936c9da4456e7646c52f71ef..refs/pull/3141/head:/app/Http/Controllers/ChapterController.php diff --git a/app/Http/Controllers/ChapterController.php b/app/Http/Controllers/ChapterController.php index 085285fc6..7541ad0db 100644 --- a/app/Http/Controllers/ChapterController.php +++ b/app/Http/Controllers/ChapterController.php @@ -204,13 +204,13 @@ class ChapterController extends Controller session()->flashInput(['name' => $chapter->name]); return view('chapters.copy', [ - 'book' => $chapter->book, + 'book' => $chapter->book, 'chapter' => $chapter, ]); } /** - * Create a copy of a page within the requested target destination. + * Create a copy of a chapter within the requested target destination. * * @throws NotFoundException * @throws Throwable @@ -225,6 +225,7 @@ class ChapterController extends Controller if (is_null($newParentBook)) { $this->showErrorNotification(trans('errors.selected_book_not_found')); + return redirect()->back(); }