jqh пре 4 година
родитељ
комит
7b8ec561ae
1 измењених фајлова са 1 додато и 1 уклоњено
  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