fix: attach when using *_fields API
#2459

Paul-Bob wants to merge fix/attach_when_using_view_fields_api into main

We do not currently have an analysis of these two commits