Skip to content
Snippets Groups Projects
Commit 3f923273 authored by Franz Glauber Vanderlinde's avatar Franz Glauber Vanderlinde
Browse files

Issue #1665450: Path alias target when using pathauto.

parent e325a64c
No related branches found
No related tags found
No related merge requests found
...@@ -228,6 +228,11 @@ class FeedsNodeProcessor extends FeedsProcessor { ...@@ -228,6 +228,11 @@ class FeedsNodeProcessor extends FeedsProcessor {
$target_node->path = $path; $target_node->path = $path;
} }
} }
// Prevent Pathauto (http://drupal.org/project/pathauto) from
// overwriting the alias.
$target_node->path['pathauto'] = FALSE;
$target_node->path['alias'] = $value; $target_node->path['alias'] = $value;
break; break;
case 'user_name': case 'user_name':
......
...@@ -175,6 +175,11 @@ class FeedsTermProcessor extends FeedsProcessor { ...@@ -175,6 +175,11 @@ class FeedsTermProcessor extends FeedsProcessor {
$target_term->path = $path; $target_term->path = $path;
} }
} }
// Prevent Pathauto (http://drupal.org/project/pathauto) from
// overwriting the alias.
$target_term->path['pathauto'] = FALSE;
$target_term->path['alias'] = $value; $target_term->path['alias'] = $value;
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment