Actions
Bug #1703
closedxmera Omnia - Collection #1705: Bugs w.r.t. document links
An ActionView::Template::Error occurred in dmsf_links#new:
Start date:
Due date:
% Done:
100%
Estimated time:
Affected Version:
Compatible Redmine Version:
Pull Request Link:
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?¶
- Install redmine_dmsf version 3.0.13.
- Enable links of dms documents in tickets.
- Make sure there is at least one uploaded document in a dms module.
- Open an existing issue and try to add a document link via the button shown in the image above.
- 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
Updated by liaham over 1 year ago
- Status changed from New to In Progress
- Assignee set to liaham
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'
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)
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
Updated by liaham over 1 year ago
- Target version changed from unreleased to 3.1.3-xmr
Actions