The other 3 fixes were the basis to get this going. In my situation, I want any person who is a maintainer to be able to assign a ticket to any other maintainer. The feature is actually quite small:
In the function subversion_form_alter, I added
if ($form_id == 'project_issue_node_form' ) {
// Get the userid/name pairs for all project maintainers (pm) of the given project id (pid)
$result = db_query('
SELECT s.uid, name
FROM {subversion_project_maintainers} s JOIN {users}
ON s.uid = users.uid
WHERE nid = %d', $form['#node']->pid);
while ($pm = db_fetch_object($result)) {
$form['issue_info']['assigned']['#options'][$pm->uid] = $pm->name;
}
}
Comments
Comment #1
mrconnerton commented5.x module is no longer supported.