Setting trigger to "After saving a new post" and advanced action to "Redirect to URL" causes extra node fields not to save. If appears that the node save is redirected before all node fields are saved.

For example:

My node has a CCK user-reference field and uses pathauto to automatically create the path. When I create a new node and save it everything appears okay. But when I open the node the path field was not generated by pathauto and the user-reference field is empty (even though this is a mandatory field). All core fields are correctly saved.

If I reenter the values and save asecond time, now the values save because the trigger/URL redirect is only called for a new node.

Comments

jarula’s picture

still no activity
bug is still there

chales’s picture

@jarula it's due to the module weight. I just ran into this issue myself. Trigger fires before content in some cases so the simple fix is to set the module weight to a heavier number. Changing mine to 10 solved my problems.

An explanation is here: http://drupal.org/node/403446

This setting is in the system table. Look for trigger, it's default weight is 0.

damien tournoud’s picture

Status: Active » Closed (duplicate)