diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 41c118e7eb..b81fd4c7a8 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -43,6 +43,7 @@ Yii Framework 2 Change Log - Enh #11168: `yii\helpers\BaseHtml` now uses abstracted `booleanInput()` and `activeBooleanInput()` methods to render `radio()`, `checkbox()`, `activeRadio()` and `activeCheckbox()` (cesarnicola) - Bug #11822: Fixed exception on non-string value provided as CSRF token (cebe) - Enh #11850: Introduced `yii\widgets\Pjax::$submitEvent` to be able to customize event triggering PJAX form submit (Bvanleeuwen) +- Bug #11847: Fixed `yii\widgets\Pjax` to properly respond with partials when custom selector is used for container (pigochu, samdark) 2.0.8 April 28, 2016 -------------------- diff --git a/framework/widgets/Pjax.php b/framework/widgets/Pjax.php index 53a541c09d..e9bb64f1a0 100644 --- a/framework/widgets/Pjax.php +++ b/framework/widgets/Pjax.php @@ -173,7 +173,7 @@ class Pjax extends Widget { $headers = Yii::$app->getRequest()->getHeaders(); - return $headers->get('X-Pjax') && $headers->get('X-Pjax-Container') === '#' . $this->options['id']; + return $headers->get('X-Pjax') && explode(' ', $headers->get('X-Pjax-Container'))[0] === '#' . $this->options['id']; } /**