Project

General

Profile

Actions

Defect #28925

closed

Custom field values for enumerations not saved

Added by Andriy Lesyuk over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The Enumerations controller drops custom_field_values from params, therefore they are never saved. This is done in the code:

  def enumeration_params
    # can't require enumeration on #new action
    params.permit(:enumeration => [:name, :active, :is_default, :position])[:enumeration]
  end

Here :custom_field_values is missing.

Steps to reproduce:

  1. Add a custom field for activities (time tracking)
  2. Edit any activity (time tracking) in Enumerations
  3. Try to save a value for the previously created custom field (it won't be saved)

Files

fix_28925.patch (2.97 KB) fix_28925.patch Mizuki ISHIKAWA, 2018-06-18 07:43
fix_28925_v2.patch (2.99 KB) fix_28925_v2.patch Mizuki ISHIKAWA, 2018-06-18 08:17
fix_28925_v3.patch (2.94 KB) fix_28925_v3.patch updated Mizuki Ishikawa's patch (according to #28925#note-5) Go MAEDA, 2018-06-19 02:47

Related issues

Related to Redmine - Defect #26564: Enumerations sorting does not workClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF