cmb2-attached-posts icon indicating copy to clipboard operation
cmb2-attached-posts copied to clipboard

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

Open cggit opened this issue 7 years ago • 1 comments

…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

cggit avatar Apr 09 '17 00:04 cggit

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

  • One meta box with an attached post field in a repeating group field.
  • One meta box with a single attached post field.
  • One meta box with two attached post fields (not grouped and not repeating).

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?

desrosj avatar Oct 16 '17 16:10 desrosj