Closed (fixed)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2014 at 15:38 UTC
Updated:
13 Jul 2014 at 02:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
f5.andrii commentedMinor fix added.
Comment #2
botrisI confirm this bug.
But in order to make metatags work in panels and multiligual I had to change this:
Comment #3
damienmckennaComment #4
damienmckennaThis needs to be rerolled.
Comment #5
damienmckennaThis should do it.
Comment #6
b-prod commented@DamienMcKenna: actually I do not understand where you get the "$entity_name" variable in your patch.
I think you could rely on the $context->type array, which values may contain useful information: you can ensure you are dealing with entities.
Note that this does not take care of the old CTools context handlers but only the new "entity" one.
Moreover, we also could perform a loop against the $contexts variable until we have an entity... Not sure it would be a expected behaviour though.
Comment #7
damienmckennaI updated that function to use the norma $entity_type variable for the entity type's name, and $entity_info for the entity type's info.
Comment #8
damienmckennaRerolled.
Comment #9
damienmckennaCommitted.