drupal_execute() is evil. this patch gets rid of it for generating issue comments, and instead leverages the followup api we have in project issue. since an auto-followup user has to be configured for it to work, the patch also adds in checks for that and warning messages where appropriate.
| Comment | File | Size | Author |
|---|---|---|---|
| pi_generate.patch | 4.66 KB | hunmonk |
Comments
Comment #1
dwwA) Why is this true?
you must <a href="!project_issue_settings">configure an Auto-followup user</a> to generate issue commentsI thought the auto-generation of issues and comments grabs random users. We don't want all generated comments to use just the auto-followup user, I don't think.
B) Don't you mean
'#type' => 'markup'?Comment #2
hunmonk commentedA)
check the code -- what you need is a configured user for the followup stuff to work at all. once you have one, you do _not_ need to have that user be the user that creates the comment
B)
no, i mean type item ;) look at it, it looks just fine as is...
Comment #3
dwwRe: (A): moved to #409498: Fix API for adding issue comments to not require the auto user and not rely on switching global $user