Ticket #6427 (closed defect: fixed)

Opened 3 years ago

Last modified 10 months ago

[Patch] When configuring a different workflow, autocomplete doesn't work on reassign

Reported by: MartinBeyer Assigned to: rjollos
Priority: normal Component: AutocompleteUsersPlugin
Severity: minor Keywords: jquery
Cc: mitar Trac Release: 0.11

Description (Last modified by rjollos)

because input fields with other names than action_reassign_reassign_owner are created. They seem all to end with reassign_owner, however. (didn't check that in the sources)

workaround:

replace in autocompleteusers\htdocs\js\autocomplete_ticket.js

$("#action_reassign_reassign_owner").autocomplete("../users", {

with:

`$("[id$=reassign_owner]").autocomplete("../users", { `

Attachments

autocomplete_ticket.js.diff (0.5 kB) - added by jholg on 05/18/11 16:53:28.
Patch diff based on r9775

Change History

09/08/10 10:12:47 changed by rjollos

  • owner changed from k0s to rjollos.

Changing ticket owner to be new maintainer.

12/07/10 01:57:35 changed by rjollos

  • priority changed from normal to high.
  • keywords set to jquery.
  • description changed.

01/26/11 09:20:33 changed by rjollos

  • summary changed from When configuring a different workflow, autocomplete doesn't work on reassign to [Patch] When configuring a different workflow, autocomplete doesn't work on reassign.

05/18/11 16:52:45 changed by jholg

I can confirm this patch works for me (I'm currently running on r9775 of this plugin).

Relevant trac code is in trac/ticket/default_workflow.py (line numbers as of Trac 0.11.4):

    226         if 'set_owner' in operations:
    227             id = 'action_%s_reassign_owner' % action
    228             selected_owner = req.args.get(id, req.authname)

Attaching mercurial diff for this change based on r9775.

05/18/11 16:53:28 changed by jholg

  • attachment autocomplete_ticket.js.diff added.

Patch diff based on r9775

07/16/12 02:15:01 changed by rjollos

  • status changed from new to assigned.

Mitar has this in his branch as well: fc124698af4b. I'm pulling in the changes now.

07/16/12 02:15:13 changed by rjollos

  • cc set to mitar.

07/16/12 02:15:52 changed by rjollos

(In [11728]) Refs #6427: Enable autocomplete to work on reassign when a custom workflow is enabled.

Setting plugin version back to 0.4.2dev.

  • 0.4.2 will be the release for Trac 0.11.
  • 0.5.0 will be the release for Trac 0.12.

07/16/12 02:22:41 changed by rjollos

Ticket will be left open for feedback until 0.4.2/0.5.0 are released.

(follow-up: ↓ 10 ) 07/16/12 02:27:56 changed by mitar

We have been using this (in my branch) for some time now and it works.

(in reply to: ↑ 9 ) 07/16/12 02:34:09 changed by rjollos

Replying to mitar:

We have been using this (in my branch) for some time now and it works.

Which version of Trac are you running?

07/16/12 04:31:58 changed by mitar

0.12.2 there.

07/16/12 06:03:29 changed by rjollos

  • priority changed from high to normal.

07/23/12 14:47:01 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

Fix is in the current dev version of the trunk and will be released with version 0.4.2 of the plugin.


Add/Change #6427 ([Patch] When configuring a different workflow, autocomplete doesn't work on reassign)




Change Properties
Action