Project

General

Profile

Actions

Bug #1788

closed

xmera Omnia - Collection #1775: Fix smaller bugs in some components

undefined method `[]' for nil:NilClass params[:project][:project_type_id].to_i

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

A NoMethodError occurred in projects#create:

  undefined method `[]' for nil:NilClass

          params[:project][:project_type_id].to_i
                          ^^^^^^^^^^^^^^^^^^
  plugins/redmine_project_types/lib/project_types/extensions/projects_controller_patch.rb:45:in `project_type_id'
  plugins/redmine_project_types/lib/project_types/overrides/projects_controller_patch.rb:49:in `create'
  lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Actions

Also available in: Atom PDF