Project

General

Profile

Actions

Bug #1820

closed

xmera Omnia - Collection #1819: Bug fixing table module

[Exception] spreadsheet_row_results#new (NoMethodError) "undefined method `[]' for nil:NilClass

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 transform a calculated result to an end result.

What has happened instead?

After clicking the button inherit I get a HTML status 500.

What could be a possible solution?

Fix the exception raised due to the NilClass error in spreadsheet_row_results#new.

How can we reproduce the problem?

  1. Create a table which should be inherited.
  2. Fill some entries in the root table of the inheritance chain.
  3. Start the inheritance on that root table by clicking the button inherit.

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.

xmera Omnia 4.1.2 (2023-11-16)
Environment:
Redmine version 5.0.6.stable
Ruby version 3.1.4-p223 (2023-03-30) [x86_64-linux]
Rails version 6.1.7.6
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Omnia (includes JavaScript)
SCM:
Git 2.20.1
Filesystem
Redmine plugins:
advanced_plugin_helper 0.4.1
redmine_base_deface 1.8.2-xmr-1
redmine_colored_enumeration 0.1.4
redmine_computable_custom_field 3.0.5
redmine_cookie_consent 0.1.4
redmine_dashboards 2.1.2
redmine_dmsf 3.1.3-xmr
redmine_drawio 1.4.8
redmine_email_customizer 0.1.3
redmine_issue_sync 0.1.14
redmine_legal_notes 0.3.1
redmine_local_avatars 2.0.1
redmine_login_attempts_limit 1.0.3
redmine_matrix_field 0.1.4
redmine_message_customize 0.1.7
redmine_news_notification 1.1.0
redmine_periodic_task 4.3.1
redmine_project_types 4.3.2
redmine_project_types_relations 2.0.7
redmine_reports 0.2.1
redmine_subproject_collapse 0.2.0
redmine_table_calculation 2.0.2
redmine_table_calculation_inheritance 1.0.1
redmine_wiki_admonition 0.1.4
xmera_omnia_operations 0.7.4
xmera_omnia_preconfig 1.0.1

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari

Relevant log output

# Copy your log output (log/production.log) here

A NoMethodError occurred in spreadsheet_row_results#new:

  undefined method `[]' for nil:NilClass

    calculation_config_id = params[:calculation_config_id] || params[:spreadsheet_row_result][:calculation_config_id]
                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^
  plugins/redmine_table_calculation_inheritance/app/controllers/spreadsheet_row_results_controller.rb:99:in `find_calculation_config'

Actions #1

Updated by liaham over 1 year ago

  • Project changed from Redmine Table Calculation to Redmine Table Calculation Inheritance
  • Target version changed from unreleased to unreleased
  • Affected Version 1.0.1 added
  • Affected Version deleted (2.0.2)
Actions #2

Updated by liaham over 1 year ago

  • Status changed from New to In Progress
Actions #3

Updated by liaham over 1 year ago

  • Target version changed from unreleased to 1.0.2
Actions #4

Updated by liaham over 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF