The 'pid' case of the switch statement in project_issue_mailhandler() did not make sense to me. The value is a pid -- project id -- which is the parent node id. But the node_load() call -- which may be redundant -- was using 'title' as the array key.

CommentFileSizeAuthor
#8 issue_mail_lookup.2.patch658 bytesscor
issue_mail_lookup.patch731 bytesagentrickard

Comments

dww’s picture

The mailhandler support is so unloved and broken, I don't think there's any way to test this. Patch looks good on visual inspection, at least. :)

Should this go in before or after #98278: project* namespace bugs in $node lands, or will it not conflict?

Thanks,
-Derek

agentrickard’s picture

No conflict. The $node->text transition is handled by the other patch and I don't think line numbers are affected. So either.

dww’s picture

Status: Needs review » Fixed

Committed to HEAD, DRUPAL-5--2 and DRUPAL-5. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

scor’s picture

Status: Closed (fixed) » Active

Why did $node->$text become $node->text here? I don't see $node->text defined anywhere in the project* modules.

agentrickard’s picture

Oh, heck, maybe that's the problem. I may have read that code wrong. Perhaps the patch is wrong and should stay as $node->$text.

agentrickard’s picture

More accrately, the correct line is:

$project = node_load($node->$text);
scor’s picture

Status: Active » Needs review
StatusFileSize
new658 bytes

right, that's what I figured. this is RTBC

dww’s picture

Status: Needs review » Fixed

Yup, good point. Sorry I missed that in the previous review. As I wrote above, this code is completely unloved and almost certainly broken, so I couldn't test then or now, but looking at the surrounding code, this seems right. Committed to HEAD and DRUPAL-5--2. Thanks, all.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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