Posted by sun on January 7, 2011 at 1:43am
5 followers
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | comment.module |
| Category: | task |
| Priority: | normal |
| Assigned: | sun |
| Status: | closed (fixed) |
| Issue tags: | needs backport to D7, Quick fix |
Issue Summary
Copying from admin_menu.map.inc:
// @todo Make Comment module expose the original node type bundle,
// pretty please.
if (drupal_substr($bundle_name, 0, 13) == 'comment_node_') {
$bundle_name = drupal_substr($bundle_name, 13);
}| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| drupal.comment-node-bundle.0.patch | 951 bytes | Idle | FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal.comment-node-bundle.0.patch. See the log in the details link for more information. | View details |
Comments
#1
drupal.comment-node-bundle.0.patch queued for re-testing.
#2
#3
#4
drupal.comment-node-bundle.0.patch queued for re-testing.
#5
The last submitted patch, drupal.comment-node-bundle.0.patch, failed testing.
#6
Re-rolled against latest branch head.
#7
To me this looks like a sensible addition. The patch is very simple, and looks good to me.
#8
The patch applies without offset to D7. So should be ready for straight backport.
#9
Looks good to me as well, I'm pretty sure I've had to figure out the node type back from the comment before as well.
Committed to 8.x, moving to 7.x for webchick to consider.
#10
This seems like a pretty harmless and convenient API addition. I'm comfortable committing to 7.x as well.
Committed/pushed. Thanks!
#11
Automatically closed -- issue fixed for 2 weeks with no activity.