Closed herbdool closed 1 month ago
Thank you! I was able to reproduce this and it should be resolved in 5da8eaf5625bc784b0075a160ed07f2105bfca45
@elisseck I added a PR to also update it for commerce_file_field_update()
. In this case it's updating the attached files and might get passed NULL which should be treated as an empty array to confirm all files have been removed.
It seems that commerce_file_field_insert() is getting the
$items
loaded byfield_get_items()
but not checking if there are no items of that field type. Probably can just skip if there are no items.