I've implemented a view that uses an attachment and an argument passed through the parent. The view executes properly in views. However when I provide it with argument to node reference as the node selection view, it only processes the parent view. It appears this is because node reference is calling $view->add_display('content_references') to set its own options in _nodereference_potential_references_views. However the attachment is set to only attach to default. Also it never calls $view->pre_execute() which I'm told is what will add the attachments.

Does anyone know of a way to fix it so that it doesn't bypass attachments?

Thanks,
James