CMB2 / cmb2-attached-posts

Custom field for CMB2 for attaching posts to a page.
GNU General Public License v2.0
135 stars 62 forks source link

fixed bug where multiple metaboxes caused search modal to send posts … #41

Open cggit opened 7 years ago

cggit commented 7 years ago

…to the wrong metabox

Counts number of attached-posts instances on the page and if finds more than one sets context when clicking the extra search button

desrosj commented 7 years ago

I tested this today and it fixes the issues in my testing. My testing environment has:

One nitpicky thing, when you open a search and type a search term it is preserved if you open the search for a separate instance of the field. Can that field be cleared when the modal is opened? Or stay specific to the field that the search occured for?