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

#172584 sidetrack issue patch by myself: tnid was not put properly into the...

#172584 sidetrack issue patch by myself: tnid was not put properly into the node form, so translation workflow was not working
parent 47c0d5af
......@@ -111,6 +111,7 @@ function translation_form_alter(&$form, $form_state, $form_id) {
}
}
// Add translation values and workflow options.
$form['tnid'] = array('#type' => 'value', '#value' => $node->tnid);
$form['translation'] = array(
'#type' => 'fieldset',
'#title' => t('Translation settings'),
......@@ -120,7 +121,6 @@ function translation_form_alter(&$form, $form_state, $form_id) {
'#tree' => TRUE,
'#weight' => 30,
);
$form['translation']['tnid'] = array('#type' => 'value', '#value' => $node->tnid);
if ($node->tnid == $node->nid) {
// This is the source node of the translation
$form['translation']['retranslate'] = array(
......
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