Closed (fixed)
Project:
Metatag
Version:
7.x-1.0-beta9
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2014 at 09:56 UTC
Updated:
21 May 2014 at 15:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
standingtallThis is same as this https://drupal.org/node/2184979
Current version of meta tag is full of bugs.
Comment #2
blazingarrow commentedSee https://drupal.org/comment/8371977#comment-8371977 for the solution. It's quite simple, just disable Global: Front page settings, in admin/config/search/metatags and the settings from node will be used.
Comment #3
madchris commentedHi,
I think I've found something.
In the metatag.module file, the metatag_metatags_save() function makes a db_delete('metatag') but without a "revision_id" condition. So if you are working with revisions, and if your metatags datas are empty, you will lose all your metatags datas for the node and all its revisions.
Wouldn't it be better to add the line "->condition('revision_id', $revision_id)" to the query, if $revision_id !=0 ?
Comment #4
camille.maniez commentedComment #5
SebCorbin commentedComment #3 has it.
Bumping to critical priority as it deletes data. Patch attached.
Comment #6
SebCorbin commentedComment #7
Maxime Gilbert commentedThis works like a charm: must be released.
Comment #8
gregglesSlightly better title. I agree this looks like a pretty bad bug.
Any comment from the maintainers on this patch?
Comment #10
damienmckennaCommitted. Sorry for letting that slip in :(