]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Controllers/PageController.php
CSS: Updated status colors to be CSS variables, Added dark variants
[bookstack] / app / Entities / Controllers / PageController.php
index e0444ecd2198f0bca4827227149947d3fd6528a8..3187e6486fa6d60b82ea2a0e6625a278ce4f223f 100644 (file)
@@ -389,7 +389,7 @@ class PageController extends Controller
         }
 
         try {
-            $parent = $this->pageRepo->move($page, $entitySelection);
+            $this->pageRepo->move($page, $entitySelection);
         } catch (PermissionsException $exception) {
             $this->showPermissionError();
         } catch (Exception $exception) {
@@ -398,8 +398,6 @@ class PageController extends Controller
             return redirect()->back();
         }
 
-        $this->showSuccessNotification(trans('entities.pages_move_success', ['parentName' => $parent->name]));
-
         return redirect($page->getUrl());
     }