symphonycms/symphony-2 — Issue #1085: Saving of datasource field filters is broken
Author: klaftertief
Created: 2012-03-08 21:48:50+00:00
State: open

This is probably or partly caused by the new method signature of [`displayDatasourceFilterPanel()`](https://github.com/symphonycms/symphony-2/commit/a3f52b71ba25912defcd007f2076dc3ff28abc42#L2R870). The `@name` attribute of the field filters used to get prefixed by the section id (but the duplicator resets the section id by the position of the field in the set of filters). So we shoud either revert the corresponding changes in [commit a3f52b](https://github.com/symphonycms/symphony-2/commit/a3f52b71ba25912defcd007f2076dc3ff28abc42) (the datasource editor still [calls `displayDatasourceFilterPanel()` with the old parameters](https://github.com/symphonycms/symphony-2/blob/integration/symphony/content/content.blueprintsdatasources.php#L317-L324)) or we could modify `displayDatasourceFilterPanel()` bymanually inserting the section id, like

$label->appendChild(Widget::Input('fields[filter]['.$this->get('parent_section').']['.$this->get('id').']', ($data ? General::sanitize($data) : null)));

(AFAIK any number would do, because they get reset by the duplicator.)