Skip to content

Commit 481c291

Browse files
author
Sabina Talipova
committed
FIX ModelAdmin toast elements
1 parent eaca9e7 commit 481c291

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/LeftAndMain.php

+3
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,9 @@ public function redirect($url, $code = 302)
867867
if ($this->getRequest()->getHeader('X-Pjax') && !$response->getHeader('X-Pjax')) {
868868
$response->addHeader('X-Pjax', $this->getRequest()->getHeader('X-Pjax'));
869869
}
870+
if ($this->getRequest()->getHeader('X-Status') && !$response->getHeader('X-Status')) {
871+
$response->addHeader('X-Status', $this->getRequest()->getHeader('X-Status'));
872+
}
870873
$newResponse = new LeftAndMain_HTTPResponse(
871874
$response->getBody(),
872875
$response->getStatusCode(),

0 commit comments

Comments
 (0)