Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filterfields + Reordering = Error #7

Closed
peterpeter opened this issue Nov 19, 2014 · 1 comment
Closed

Filterfields + Reordering = Error #7

peterpeter opened this issue Nov 19, 2014 · 1 comment

Comments

@peterpeter
Copy link
Contributor

Got a component with multiple relations and filter-fields to filter in the list view. When I try to reordering the items the form generates (empty or not) post vars from these filter fields, and the nnrelation-table behavior trys to proceed them in onAfterStore(), while the model on reordering loads every single item as table object, adjust the reordering, and save them (and triggers the onAfterSave()).
And this results in wrong relations or sql-error.

Hmmm....maybe need to check the saving-context (if possible)?

@peterpeter
Copy link
Contributor Author

First quick n'dirty fix:

if($input->getWord('task') == 'saveorder'){return true;}
after
$input = new F0FInput()
in F0FTableBehaviorNnrelation::onAfterStore()

@f-liva f-liva closed this as completed in ffe721a Nov 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant