Skip to content

Commit

Permalink
Merge pull request #3679 from phpcxy/fix-response
Browse files Browse the repository at this point in the history
修复创建数据验证错误信息的返回判断
  • Loading branch information
z-song committed Jul 24, 2019
2 parents de657b3 + 49b4059 commit 1696ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public function store()
*/
protected function responseValidationError(MessageBag $message)
{
if (\request()->ajax()) {
if (\request()->ajax() && !\request()->pjax()) {
return response()->json([
'status' => false,
'validation' => $message,
Expand Down

0 comments on commit 1696ae7

Please sign in to comment.