Commit 8d8b816c authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#44129, patch by Zen

parent 50cd866c
......@@ -1349,6 +1349,7 @@ function node_revision_revert($nid, $revision) {
if ($node->vid) {
$node->revision = 1;
$node->log = t('Copy of the revision from %date.', array('%date' => theme('placeholder', format_date($node->revision_timestamp))));
$node->taxonomy = array_keys($node->taxonomy);
node_save($node);
......
......@@ -1349,6 +1349,7 @@ function node_revision_revert($nid, $revision) {
if ($node->vid) {
$node->revision = 1;
$node->log = t('Copy of the revision from %date.', array('%date' => theme('placeholder', format_date($node->revision_timestamp))));
$node->taxonomy = array_keys($node->taxonomy);
node_save($node);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment