Fix fieldtype_tfunc
for union types
#41667
Merged
fieldtype_tfunc
for union types
#41667