yiisoft/yii — pull request #728 by resurtm (2012-05-19 06:15:35+00:00)
Title: Fixes issue #250

Workaround for issue #250. See this note from the [jQuery docs](http://api.jquery.com/submit/):

> Forms and their child elements should not use input names or ids that conflict with properties of a form, such as submit, length, or method. Name conflicts can cause confusing failures.

This PR offers workaround for this jQuery restriction. I think form field named 'submit' is never really needed but button with type 'link' could be named 'submit'.

My testing code which works fine now:
```php
array(
'name'=>array(
'type'=>'text',
),
),
'buttons'=>array(
'submit'=>array(
'type'=>'link',
'label'=>'save',
),
)
),
new TestForm()
); ?>

```