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="http://www.yiiframework.com/forum/index.php/topic/22464-cgridview-search-an-ajaxsubmitbutton-2-ajax-calls/page__p__109852__hl__two+ajax+call+#entry109852"]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,
Claudio