jqh 4 лет назад
Родитель
Сommit
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