thebuggenie/thebuggenie — pull request #50 by pb30 (2012-03-06 21:23:35+00:00)
Title: Partially fix 500 errors when bulk assigning due to calls to a non-object

When trying to run the 'Assign Issue' workflow step on multiple issues, $issue isn't set (since $issues is), so I added some checks around lines that call methods on it.

However the callback links to select an assignee expect an issue id (below) and I wasn't sure how to update these to work with multiple issues. Thoughts?

```
'callback'	=> "TBG.Issues.updateWorkflowAssignee('" . make_url('issue_gettempfieldvalue', array('project_key' => $project->getKey(), 'issue_id' => $issue->getID(), 'field' => 'assigned_to', 'identifiable_type' => '%identifiable_type%', 'value' => '%identifiable_value%')) . "', %identifiable_value%, %identifiable_type%, ".$transition->getID().");",
'teamup_callback'	=> "TBG.Issues.updateWorkflowAssigneeTeamup('" . make_url('issue_gettempfieldvalue', array('project_key' => $project->getKey(), 'issue_id' => $issue->getID(), 'field' => 'assigned_to', 'identifiable_type' => '%identifiable_type%', 'value' => '%identifiable_value%')) . "', %identifiable_value%, %identifiable_type%, ".$transition->getID().");",```