When you use publishcontent to unpublish a node which has a pathauto alias, the module doesn't specify
$node->pathauto_perform_alias = FALSE; as per http://drupal.org/node/1179988

This patch checks to see if pathauto is in the module list, and if so sets the flag.

CommentFileSizeAuthor
#1 publishcontent-1667880-1.patch524 bytespatrick.davey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

patrick.davey’s picture

FileSize
524 bytes
AaronBauman’s picture

Title: Publish content doesn't play nicely with pathauto » Pathauto doesn't properly keep track of node aliases
Project: Publish Content » Pathauto
Status: Patch (to be ported) » Active

publishcontent uses node_load and node_save, which are the proper API for dealing with node crud operations.
it's unreasonable for contrib modules (ie. publishcontent) to be responsible for other contrib modules' (ie. pathauto) node properties beyond using the nodeapi.

re-filing as a bug against pathauto.
please re-test against the latest dev version of pathauto and update the version on this issue.

Dave Reid’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.