Currently, when embedding a view that has exposed filters, it will only work the first time you use them.
If you close the modal and then reopen it, a js error is going to be triggered and the view is going to be broken.
It seems to be a views issue that is sending the old view selector to his js, as a consequence, views is not able to refresh his view.
The issue is well described here #1877238: Views caching cannot be combined with Ajax on cached pages, and plenty other issues are opened about that.

Comments

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new2.05 KB

The issue seems tricky to solve, but I found a workaround (See the attached patch).
This patch also solves an other potential issue found, when embedding the view, the display used is always the default one.

jsacksick’s picture

Issue summary: View changes
jsacksick’s picture

Status: Needs review » Fixed

I decided to go ahead and commit the patch, this fixes the issue, let's hope it won't break anything else :). Commit 1e8a4fe

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.