Project

General

Profile

Actions

Bug #1703

closed

xmera Omnia - Collection #1705: Bugs w.r.t. document links

An ActionView::Template::Error occurred in dmsf_links#new:

Added by liaham over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:

Description

๐Ÿ› Thanks for taking the time to fill out this bug report! ๐Ÿ˜Š

What did you expect?

I expect to add a dms document link in a ticket:

What has happened instead?

Nothing happend on the UI.

What could be a possible solution?

Fix the error according to the log entries below.

How can we reproduce the problem?

  1. Install redmine_dmsf version 3.0.13.
  2. Enable links of dms documents in tickets.
  3. Make sure there is at least one uploaded document in a dms module.
  4. Open an existing issue and try to add a document link via the button shown in the image above.
  5. Look into your log file to find the error message.

In what environment are you running the plugin?

Please copy and paste your environment information as displayed in Administration ยป Information or run bin/about in the root dir of your Redmine instance.

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari

Relevant log output

# Copy your log output (log/production.log) here
An ActionView::Template::Error occurred in dmsf_links#new:

  wrong number of arguments (given 1, expected 2)
  plugins/redmine_dmsf/app/helpers/dmsf_links_helper.rb:38:in `files_for_select'
  plugins/redmine_dmsf/app/helpers/dmsf_links_helper.rb:38:in `files_for_select'
  plugins/redmine_dmsf/app/views/dmsf_links/_form.html.erb:89
  app/helpers/application_helper.rb:1483:in `labelled_form_for'
  plugins/redmine_dmsf/app/views/dmsf_links/_form.html.erb:23
  plugins/redmine_dmsf/app/views/dmsf_links/new.js.erb:21
  lib/redmine/sudo_mode.rb:61:in `sudo_mode'


Files

Actions #1

Updated by liaham over 1 year ago

  • Status changed from New to In Progress
  • Assignee set to liaham
Actions #2

Updated by liaham over 1 year ago

  Rendered plugins/redmine_dmsf/app/views/dmsf_links/_form.html.erb (Duration: 48.0ms | Allocations: 26721)
  Rendered plugins/redmine_dmsf/app/views/dmsf_links/new.js.erb (Duration: 57.6ms | Allocations: 28734)
Completed 500 Internal Server Error in 96ms (ActiveRecord: 13.2ms | Allocations: 50764)


  
ActionView::Template::Error (wrong number of arguments (given 1, expected 2)):
    86:       <% if @type == 'link_from' %>
    87:         <p>
    88:           <%= label_tag 'dmsf_link[target_file_id]', l(:field_target_file) %>
    89:           <% files = files_for_select(@dmsf_link.target_project.id) %>
    90:           <%= select_tag 'dmsf_link[target_file_id]', options_for_select(DmsfFolder.file_list(files)), required: modal %>
    91:         </p>
    92:       <% end %>
  
plugins/redmine_dmsf/app/helpers/dmsf_links_helper.rb:38:in `files_for_select'
plugins/redmine_dmsf/app/views/dmsf_links/_form.html.erb:89
app/helpers/application_helper.rb:1483:in `labelled_form_for'
plugins/redmine_dmsf/app/views/dmsf_links/_form.html.erb:23
plugins/redmine_dmsf/app/views/dmsf_links/new.js.erb:21
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Actions #3

Updated by liaham over 1 year ago

  • Parent task set to #1705
Actions #4

Updated by liaham over 1 year ago

  • Project changed from xmera Omnia to Redmine DMSF
  • Category deleted (30)
  • Target version deleted (4.1.0)
  • Affected component deleted (redmine-dmsf)
Actions #5

Updated by liaham over 1 year ago

  • Status changed from In Progress to Closed
  • Target version set to unreleased
  • % Done changed from 0 to 100
Actions #6

Updated by liaham over 1 year ago

  • Target version changed from unreleased to 3.1.3-xmr
Actions

Also available in: Atom PDF