| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Description
Project:
Ubercart Hi
We have experienced one problem refencing to this element of the node object, field_image_cache, and I've found some references to it in uc_importer, uc_product and uc_product_kit modules, all of them check the existance of field_image_cache[0] and, if you create a product with more than one images and then delete the first one, the field_image_cache[0] won't exist, same thing occurs if you add images and delete the first in the set.
I suggest to replace the field_image_cache[0] references to an array_shift to get the first image, if any.
PS: I think tha uc_catalog has the same reference
Version:
Ubercart 1.3 