ZF-10707: the hidden field for ZendX_JQuery_Form_Element_Slider doesn't correct in a subform
Description
When you add a ZendX_JQuery_Form_Element_Slider element in a subform, you've a problem this the html render, the name of the hidden field isn't correct:
Instead of this, you should have this content:
It's a problem when you validate the form, the name is wrong, you loose the values.
Thanks for your feedback.
Comments
Posted by Christoph, René Pardon (renepardon) on 2010-11-18T10:20:41.000+0000
Hi Ludovic,
this is a known problem. I've already uploaded a Patch for this.
regards René
Edit: There is already an implementation for array notation. Have a look at: http://framework.zend.com/manual/en/…
So you should use setBelongsTo and/or setIsArray.
best regards René
Posted by Ludovic Gasc (gmludo) on 2010-11-22T01:45:58.000+0000
I've tested with your patch, Zend_Form::setIsArray($flag) and Zend_Form::setElementsBelongTo($array), nothing works.
I've tested without our patch too.
For all Zend_Form standard elements, it works, except of ZendX_JQuery_Form_Element_Slider, I've always the same issue.
Are you sure it isn't an issue ?
Posted by Ludovic Gasc (gmludo) on 2010-12-28T07:20:46.000+0000
Do you need a source code example to demonstrate the presence of this bug ?