jqh 4 år sedan
förälder
incheckning
7b8ec561ae
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Form.php

+ 1 - 1
src/Form.php

@@ -931,7 +931,7 @@ class Form implements Renderable
             return $redirectTo;
         }
 
-        $resourcesPath = $this->resource(-1);
+        $resourcesPath = $this->isCreating() ? $this->resource(0) : $this->resource(-1);
 
         if ($this->request->get('after-save') == 1) {
             // continue editing