pallets-eco / flask-admin

Simple and extensible administrative interface framework for Flask
https://flask-admin.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5.8k stars 1.58k forks source link

Search doesn't carry over the "extra" arguments #1579

Open nad2000 opened 6 years ago

nad2000 commented 6 years ago

While the search form action url includes extra arguments, they don't get propagated further. The extra augment get dropped since the method is GET. It is expected behaviour of the form according to https://www.w3.org/TR/2011/WD-html5-20110525/association-of-controls-and-forms.html#form-submission-algorithm . The extra args need to be treated the same way as filters: they need to be rendered as hidden fields.

petrus-jvrensburg commented 5 years ago

Thanks @nad2000!

I'm adding a test for this, and then copying the same approach for handling extra arguments while filtering.