Commit fecd9638 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#357785 by arnoldc, gravalsyr, miro_dietiker, plach: retain the tnid value for...

#357785 by arnoldc, gravalsyr, miro_dietiker, plach: retain the tnid value for new nodes saved, so the node object reflects the database
parent 418f43f7
......@@ -227,6 +227,7 @@ function translation_nodeapi(&$node, $op, $teaser, $page) {
db_query("UPDATE {node} SET tnid = %d, translate = %d WHERE nid = %d", $tnid, 0, $node->translation_source->nid);
}
db_query("UPDATE {node} SET tnid = %d, translate = %d WHERE nid = %d", $tnid, 0, $node->nid);
$node->tnid = $tnid;
}
break;
......
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