Skip to content

Commit 9d3fdeb

Browse files
committed
Adapt the status text with correct reponse code
1 parent 7a8b93f commit 9d3fdeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

View/ViewHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ private function getDataFromView(View $view)
455455
array(
456456
'status' => 'error',
457457
'status_code' => $this->failedValidationCode,
458-
'status_text' => Response::$statusTexts[$view->getResponse()->getStatusCode()],
458+
'status_text' => Response::$statusTexts[$this->failedValidationCode],
459459
'currentContent' => '',
460460
'message' => 'Validation Failed',
461461
'errors' => $form

0 commit comments

Comments
 (0)