Closed (fixed)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Aug 2012 at 06:53 UTC
Updated:
4 Aug 2021 at 09:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jax commentedMarking this as a dupe of #1371968: Show/Hide Meta tags fieldset per content type.
Comment #2
JvE commentedRe-opening since this issue is about the bug that metatag_entity_has_metatags($entity_type, $entity) can return TRUE for an entity for which metatag_entity_supports_metatags($entity_type, $bundle) returns FALSE.
Not about controlling Meta tags per content type.
Comment #3
damienmckennaNeeds to be rerolled, but I think this will be worthwhile.
Comment #4
damienmckennaTag.
Comment #5
JvE commentedI updated the test and rerolled the patch.
Changes to the test:
- removed invalid cases that should (and will) throw exceptions in core entity handling.
- changed testing metatag_entity_supports_metatags to testing metatag_entity_has_metatags since the actual module functionally uses the latter.
Changes to the module:
- entities can no longer "have" metatags if their entity-type/bundle does not support them (or they have been disabled).
Comment #7
JvE commentedSigh..
Comment #8
damienmckennaWill be reviewed next.
Comment #9
damienmckennaCommitted! Thanks JvE!
Comment #10
damienmckennaLast night saw the release of 7.x-1.0-beta1, so I'm closing all these "fixed" issues in the interest of tidying up the issue queue. Thank you all for your help getting us to this point!
Comment #10.0
damienmckennaUpdated issue summary to clarify the bug and avoid confusion.
Comment #11
damienmckenna