[fixes #46035123] fix add to collection function for advanced search