From 4f053210daeddec2f2ab5ccf5fbbf619bba8f972 Mon Sep 17 00:00:00 2001 From: anou Date: Wed, 9 Mar 2016 16:00:02 +0100 Subject: [PATCH] Skip if the hook_node_update() invoked during synchronization by i18n --- pathauto.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pathauto.module b/pathauto.module index 6305820..7148e54 100644 --- a/pathauto.module +++ b/pathauto.module @@ -748,6 +748,10 @@ function pathauto_node_update_alias(stdClass $node, $op, array $options = array( if (isset($node->path['pathauto']) && empty($node->path['pathauto']) && empty($options['force'])) { return FALSE; } + // Skip if the hook_node_update() invoked during synchronization by i18n + if (function_exists('i18n_sync') && !i18n_sync()) { + return FALSE; + } $options += array('language' => pathauto_entity_language('node', $node)); -- 2.2.1