On a node's "Translations" tab, the "select node" operation is not working. "create translation" works however.

Using "select node" brings up the proper form, and once submitted returns back to the "Translations" page with the "select node" form still showing. The DB is not updated, the translations table does not show a change, and changing the language when viewing the node does not work.

CommentFileSizeAuthor
#4 localizernode.patch607 bytesrhys

Comments

Roberto Gerola’s picture

Can you try with the latest dev version ?

Let me know.

Thanks.

buchanae’s picture

the latest dev. version gives me "call to undefined function block_list()"

rhys’s picture

Had the same problem, so checked the code.
In modules/localizernode.module on line 215, within function localizernode_node_select_form_submit(),
the following code appears.

  if( $localizernode_pid && $nid ) {
    $localizernode=localizernode_findbynid($nid);
    localizernode_save(array('nid'=>$nid, 'pid'=>$localizernode['pid'], 'locale'=>$localizernode['locale']));
    drupal_set_message(t('The translation has been saved'));
  }

This is what I changed it to.

  if( $localizernode_pid && $nid ) {
    $localizernode=localizernode_findbynid($nid);
    localizernode_save(array('nid'=>$nid, 'pid'=>$localizernode_pid, 'locale'=>$localizernode['locale']));
    drupal_set_message(t('The translation has been saved'));
  }

This solved my problem.

rhys’s picture

Status: Active » Needs review
StatusFileSize
new607 bytes

Here is a patch for it.

Roberto Gerola’s picture

Many thanks.

Commited to dev branch.

Roberto Gerola’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)