Explorar o código

修复表单页面选择继续编辑会导致hasMany重复添加数据问题

jqh %!s(int64=4) %!d(string=hai) anos
pai
achega
16bbf6ee34
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Form.php

+ 1 - 0
src/Form.php

@@ -822,6 +822,7 @@ class Form implements Renderable
                 $this->response()
                     ->success(trans('admin.update_succeeded'))
                     ->redirectIf($url !== false, $url)
+                    ->refreshIf($url === false)
             );
         } catch (\Throwable $e) {
             $response = $this->handleException($e);