Commit 504e973f by Sorokin Victor Committed by Alexander Makarov

Fixes #4241: `yii\widgets\Pjax` was incorrectly setting container id

parent e5195937
......@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
- Bug #4123: Trace level in logger had no effect in Targets, traces where not logged (cebe)
- Bug #4127: `CaptchaValidator` clientside error message wasn't formed properly (samdark)
- Bug #4162: Fixed bug where schema name was not used in ’SHOW CREATE TABLE’ query in `yii\db\mysql\Schema` (stevekr)
- Bug #4241: `yii\widgets\Pjax` was incorrectly setting container id (mitalcoi)
- Bug: Fixed inconsistent return of `\yii\console\Application::runAction()` (samdark)
- Bug: URL encoding for the route parameter added to `\yii\web\UrlManager` (klimov-paul)
- Bug: Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404 (qiangxue)
......
......@@ -152,7 +152,7 @@ class Pjax extends Widget
{
$headers = Yii::$app->getRequest()->getHeaders();
return $headers->get('X-Pjax') && $headers->get('X-Pjax-Container') === '#' . $this->getId();
return $headers->get('X-Pjax') && $headers->get('X-Pjax-Container') === '#' . $this->options['id'];
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment