Multimodelform On Update Inserts A Blank New Record

hi

multimodelform on update of existing child records, one extra new blank record is inserted.

but while adding additional child record it works fine, no blank record inserted.

plz help me where i am doing mistake.

Check this Wiki

http://www.yiiframework.com/wiki/19/how-to-use-a-single-form-to-collect-data-for-two-or-more-models/

http://www.yiiframework.com/wiki/291/update-two-models-with-one-view/

this also helps you