Project

General

Profile

Actions

Defect #19234

closed

Problem with prefilled issue forms and custom fields

Added by Marco Scholl about 9 years ago. Updated about 9 years ago.

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

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

we have a big problem. we prefill the issue form with this url

https://host/projects/name/issues/new?issue[custom_field_values][1]=customfield&issue[assigned_to_id]=1

since redmine 3 this will no longer work.

Actions #1

Updated by Marco Scholl about 9 years ago

In Issue#safe_attributes the editable_custom_field_values(user) method return an empty list. so the parameter will dropped.

Actions #2

Updated by Marco Scholl about 9 years ago

so i have found the problem. the tracker isn't filled with default tracker. so the editable_custom_field couldn't find any custom fields. i think the issue model should prefilled with default.

as workaround i must set the tracker manual -> &issue[tracker_id]=ID.

Actions #3

Updated by Jean-Philippe Lang about 9 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Yes, custom fields depends on the issue tracker. You now need to provide a tracker_id if you want to set default values for the issue custom fields.

Actions #4

Updated by Toshi MARUYAMA about 9 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF