CActiveForm seems to be submitting form twice

And what the hell some people advise you afterValidate.

afterValidate is out of problem.

The problem is stop button confirm twice. That is it.

You should rewrite yii.submitForm function, that is all to fix this strange bug.

Mine script now works fine as I expect.