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.
Here's a patch to fix the undefined index notices.
Notice: Undefined index: description in EntityDefaultViewsController->map_from_schema_info() (line 391 of /var/www/drupal/sites/all/modules/entity/views/entity.views.inc).
Comment | File | Size | Author |
---|---|---|---|
#1 | fix_undefined_index_notices-1398114-1.patch | 4.64 KB | sammyd56 |
Comments
Comment #1
sammyd56 CreditAttribution: sammyd56 commentedComment #2
XanoI'm inclined to mark this as a bug in Entity API, as usually descriptions should not be required if there are titles/labels already. Requiring descriptions leads to duplicate content (identical titles and descriptions) if there is no need for more verbose descriptions.
Also, Entity API's hook_entity_property_info() documentation in entity_metadata_hook_entity_info() says the description property is optional.
Comment #3
sammyd56 CreditAttribution: sammyd56 commentedRight you are! I've filed an issue in the Entity API queue: #1400058: Should 'description' be optional in hook_entity_property_info()?
Comment #4
XanoThanks!