Commit 74dbe460 authored by Placinta's avatar Placinta
Browse files

#1341984 Set node type of converted node to the "destination type", as...

#1341984 Set node type of converted node to the "destination type", as requested. Cannot reproduce issue, but shouldn't affect in any bad way.
parent e26755b5
......@@ -832,6 +832,7 @@ function node_convert_node_convert($nid, $dest_node_type, $source_fields, $dest_
}*/
cache_clear_all('field:node:' . $node->nid, 'cache_field');
$converted_node = node_load($nid, NULL, TRUE);
$converted_node->type = $dest_node_type;
try {
node_save($converted_node);
}
......
Supports Markdown
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