Skip to content

Commit

Permalink
FIX ModelAdmin toast elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Oct 31, 2023
1 parent eaca9e7 commit 481c291
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,9 @@ public function redirect($url, $code = 302)
if ($this->getRequest()->getHeader('X-Pjax') && !$response->getHeader('X-Pjax')) {
$response->addHeader('X-Pjax', $this->getRequest()->getHeader('X-Pjax'));
}
if ($this->getRequest()->getHeader('X-Status') && !$response->getHeader('X-Status')) {
$response->addHeader('X-Status', $this->getRequest()->getHeader('X-Status'));
}
$newResponse = new LeftAndMain_HTTPResponse(
$response->getBody(),
$response->getStatusCode(),
Expand Down

0 comments on commit 481c291

Please sign in to comment.