I use an entity without a base table (I know it's unusual) and I get this error:

Notice: Undefined index: base table in feeds_views_data() (line 170 of /var/www/testing/sites/all/modules/feeds/views/feeds.views.inc).

on every page I visit after clearing the cache.

Comments

angel.h’s picture

Status: Needs work » Needs review
StatusFileSize
new1.1 KB

Here is a suggested patch.

megachriz’s picture

Status: Needs review » Reviewed & tested by the community

When I define an entity type that doesn't need a database table, I usually set the entity type's "base table" property to "NULL". Even in that case this patch makes sense, else you get an empty entry in $data['feeds_item']['table']['join'].

I looked at the patch and I see no issues with it. RTBC.

  • twistor committed 00f28a2 on 7.x-2.x authored by angel.h
    Issue #2500185 by angel.h, MegaChriz: Error when having an entity...
twistor’s picture

Assigned: angel.h » Unassigned
Status: Reviewed & tested by the community » Fixed

Thanks!

I suppose that means FeedsProcessor::entityLoad() needs some work.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.