Closed (works as designed)
Project:
Entity Translation
Version:
7.x-1.0-beta2
Component:
Base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2013 at 08:41 UTC
Updated:
22 Mar 2013 at 10:11 UTC
Please, can you integrate patch bellow in your code (dev ot stable)
http://drupal.org/node/1347126
Thanks
/**
* Implements hook_node_update().
*
* Update translation status of the source translation when changing the status
* of the node.
*/
function entity_translation_node_update($node) {
db_update('entity_translation')
->fields(array('status' => $node->status))
->condition('entity_type', 'node')
->condition('entity_id', $node->nid)
->condition('source', '')
->execute();
}
Comments
Comment #1
plachNo, sorry, the current one is the intended behavior: the global node status does not refer to the original values. For some reason you may want to unpublish the original values and keep a translation published.