Bug #546

Tag auto complete is assuming that there are projects on the site to populate the dialogue

Added by Luis Figueira over 11 years ago. Updated over 11 years ago.

Status:FeedbackStart date:2012-11-13
Priority:LowDue date:
Assignee:Chris Cannam% Done:

100%

Category:-
Target version:-

Description

The JS functino observeProjectTagsField is assuming that there are projects on the site in order to populate the add tags dialogue.

This can be seen in the following files:

vendor/plugins/redmine_tags/app/views/projects/_filter_search_tags.html.erb
9:      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_search_tags', :project_id => Project.first.id)}', true)" -%>

vendor/plugins/redmine_tags/app/views/projects/_filter_tags.html.erb
10:      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %>

vendor/plugins/redmine_tags/app/views/projects/_tags_form.html.erb
9:  <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}', false)" %>  

History

#1 Updated by Luis Figueira over 11 years ago

  • Status changed from New to In Progress
  • Priority changed from Normal to Low

To see this happening, just go to (in an empty instance of redmine) to /projects

#2 Updated by Luis Figueira over 11 years ago

  • Status changed from In Progress to Feedback
  • Assignee changed from Luis Figueira to Chris Cannam
  • % Done changed from 0 to 100

Fixed in baf70e98d8ab. Already merged to the luisf branch.

Also available in: Atom PDF