jqh 4 năm trước cách đây
mục cha
commit
7b8ec561ae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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