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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sammyd56’s picture

Status: Active » Needs review
FileSize
4.64 KB
Xano’s picture

I'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.

sammyd56’s picture

Right you are! I've filed an issue in the Entity API queue: #1400058: Should 'description' be optional in hook_entity_property_info()?

Xano’s picture

Status: Needs review » Closed (works as designed)

Thanks!