Download & Extend

Casetracker actions autocomplete doesn't assign to uid

Project:Case Tracker
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

If the casetracker_actions assign to action is selected and there are a lot of assignable users, the user select list is replaced by an autocomplete. Where the select list returns values in the form:

<?php
array('uid' => 'username',);
?>

the autocomplete just returns:
<?php
array('username',);
?>

After submitting, the case will be assigned to anonymous because a non-numeric uid (username instead of uid) was entered. This patch solves the problem during submit by checking for a numeric value and searching for a valid username => uid replacement. I'd prefer it if the autocomplete was fixed, but this works fine too. (see patch)

AttachmentSize
assign_to_action_autocomplete_uid_replacement.patch1.14 KB
nobody click here