CGridView filter sends duplicate AJAX request

Hello people,

I've just started testing some functionality of the 1.1.11 Yii version with Firefox 11.0, Apache 2.2.22 on Ubuntu 12.04 and found what looks like a bug for me.

I have an index page only consisting of a CGridView like this:

$gv = $this->widget('zii.widgets.grid.CGridView', array(

    'dataProvider' => $model->search(),

    'filter' => $model


That is all I have in my view. When I type something in any of the filter inputs and hit Enter, I can see in firebug 2 Ajax calls are issued. On the other hand, if instead of hitting Enter I hit the Tab key, the next input focuses and only 1 Ajax call is made, which looks like the appropiate behavior.

I also tried wrapping the above code with this, to avoid a hypothetical auto-submit. It did not help:

echo CHtml::beginForm('', '', array('onsubmit' => 'return false;'));

echo CHtml::endForm();

I found an [url=""]old post[/url] about a similar issue, but the solution proposed there looks deprecated, as the patch submited is not applicable in my current Yii version.

I hope you have a clue about what is happening. Cheers,


This is a known issue in 1.1.11 and is already fixed on github…

Hello mdomba,

thank you for your answer. First of all, i fell sorry for posting on a topic already known to be a bug. How can I avoid this in the future? I mean, should I have searched in the bugtracking system or somewhere else? By the way, what is the easiest way to get a patch for this? Thanks again.



Np… there is a "known issues" thread here - http://www.yiiframew…1-known-issues/

but i think this one was not reported there as we had no time to write it…

To see what is going on, what issues are reported, what is fixed, you need to check the Yii github page, there you can get the fixed code too…

Just click above on "Development" main menu item.

Best regards

All right! Thank you mdomba. Best regards