Modify ↓
#13115 closed defect (fixed)
[PATCH] No autocompletion for assignee on creating a ticket
Reported by: | Owned by: | jomae | |
---|---|---|---|
Priority: | normal | Component: | AutocompleteUsersPlugin |
Severity: | normal | Keywords: | |
Cc: | Ryan J Ollos, Jun Omae | Trac Release: | 1.2 |
Description
When creating a ticket in Trac 1.2, default workflow supports assigning ticket to a user right upon creation. This <input>
field has another id
(different from Trac 1.0), thus breaking owner autocompletion.
Here's a quick'n'dirty patch:
-
autocompleteusers/htdocs/js/autocomplete_newticket.js
diff --git a/autocompleteusers/htdocs/js/autocomplete_newticket.js b/autocompleteusers/htdocs/js/autocomplete_newticket.js index 32f2322..047f54e 100644
a b 1 1 jQuery(document).ready(function ($) { 2 $("# field-owner").autocomplete("subjects", {2 $("#action_create_and_assign_reassign_owner").autocomplete("subjects", { 3 3 formatItem: formatItem 4 4 });
Attachments (0)
Change History (7)
comment:1 Changed 8 years ago by
comment:3 Changed 8 years ago by
That is, the patch in comment:1. It works all by itself, without the other change in the original post.
comment:4 Changed 8 years ago by
Yes, patch by Jun is obciously better, and I think is ready to be committed.
comment:5 Changed 8 years ago by
Owner: | changed from Tetsuya Morimoto to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:7 Changed 8 years ago by
Owner: | changed from Ryan J Ollos to jomae |
---|
Note: See
TracTickets for help on using
tickets.
The id and name attribute for owner field is depended on
[ticket-workflow]
settings. Also, your patch would break on Trac 1.0 or early.