Closed (fixed)
Project:
Mailhandler
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
22 Nov 2009 at 17:41 UTC
Updated:
6 Dec 2009 at 19:10 UTC
In mailhandler_process_message() there's a line like:
if (!in_array($node->type, $vocabulary->nodes)) {
This assumes that $node->type is already known. It is known if we're using the default type or if the user enters their commands like:
type: blog
taxonomy: [foo]
but if the user enters commands like:
taxonomy: [foo]
type: blog
Then $node->type may not be correct. While this could be by-design, it may also be worth fixing so the interface does not require knowledge of the required order of commands. This is related to http://drupal.org/node/639830 since some pre-processing of the commands will be required in order to get the desired node type before anything else.
Comments
Comment #1
Ian Ward commentedApplied a fix so that commands are grabbed, type is determined, node is prepared, and then finally the commands are executed on the node. http://drupalcode.org/viewvc/drupal/contributions/modules/mailhandler/ma...