The current Views integration code (via #1151936: Ensure Metatag works OOTB using Views to display Drupal core's entities) could potentially go through a lot of effort if the current entity is unsupported, so metatag_entity_supports_metatags() should be executed during the loop.

Files: 
CommentFileSizeAuthor
#1 metatag-n1842052.patch969 bytesDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
969 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View

This patch adds a quick call to metatag_entity_supports_metatags() before going any further.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

DamienMcKenna’s picture

Status: Fixed » Closed (fixed)

Version 7.x-1.0-beta3 has been released and includes this work. Am closing this issue in an effort to keep the issue queue clean.