]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/ChapterController.php
Fixed failing webhook test cases
[bookstack] / app / Http / Controllers / ChapterController.php
index 085285fc6261caefac52788020d44a69ed8a7907..7541ad0dbd9811d76d17b7036fd631de07c1916f 100644 (file)
@@ -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();
         }