Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The product feed attribute "always_multiple" is not always present. Therefore when trying to access it in the code, php throws a notice of undefined index.
attached is a simple patch that surrounds the attribute array with empty to if it does not exist or if its value equals FALSE.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2734457-2.patch | 1.54 KB | andypost |
always_multiple_attribute_notice.patch | 1.42 KB | awm |
Comments
Comment #2
andypostIt's still issue in 8.x
Notice: Undefined index: translatable in Drupal\bazaarvoice_productfeed\Service\ProductfeedBuilderService->buildProduct() (line 60 of /var/www/html/web/modules/contrib/bazaarvoice/modules/bazaarvoice_productfeed/src/Service/ProductfeedBuilderService.php)
Notice: Undefined index: multiple in Drupal\bazaarvoice_productfeed\Service\ProductfeedBuilderService->getAttributeEntityFieldValue() (line 463 of /var/www/html/web/modules/contrib/bazaarvoice/modules/bazaarvoice_productfeed/src/Service/ProductfeedBuilderService.php)