I have a simple form filter on a class of my model with a "title" field, and I'd like to use sfWidgetFormJQueryAutocompleter for this text field, in my filter.
So I first tried to simply set this widget for this field. It looked good but actually the filter didn't work. The reason is that the html field is named "my_form_filters[title]" instead of "my_form_filters[title][text]". See the "[text]" is missing. It is specific to filters. That's because the "sfWidgetFormJQueryAutocompleter" class extends "sfWidgetFormInput" instead of "sfWidgetFormFilterInput". So my (ugly) temporary solution is to duplicate the "sfWidgetFormJQueryAutocompleter" class to a "sfWidgetFormJQueryAutocompleterFilter" that extends "sfWidgetFormFilterInput"... It works but it's very bad... Do you have a smarter solution? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
