Hello Daniel,
thanks for your feedback. > No they wouldn't, so don't pass it to setData. But I should imaging people > would want to set the value on the submit element programtically, I don't > think there is a distinction between posted form data and normal setter data, > I think that may be the issue? The problem I see with this is that then, you would have to fiddle with the form and request data and need to check whether the request data contains a value for a submit element (which the form may or may not have). Typically, in a controller action I would just retrieve the data from the postRedirectGet-plugin and pass it on to the form without worrying about the details of what elements the form contains or for what elements data is present in the requested data. Don't you agree? I believe that $form->populateValues() should not populate submit elements. I'm fine with issuing a PR that fixes this, just looking into getting some feedback before creating an issue on Github. Best regards, Andreas -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
