Browse Source

修复表单跳转异常问题

jqh 4 years ago
parent
commit
6708359a02
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Form.php

+ 1 - 2
src/Form.php

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