Project

General

Profile

Actions

Defect #19234

closed

Problem with prefilled issue forms and custom fields

Defect #19234: Problem with prefilled issue forms and custom fields

Added by Marco Scholl over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
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.

Updated by Marco Scholl over 11 years ago Actions #1

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

Updated by Marco Scholl over 11 years ago Actions #2

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.

Updated by Jean-Philippe Lang over 11 years ago Actions #3

  • 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.

Updated by Toshi MARUYAMA over 11 years ago Actions #4

  • Description updated (diff)
Actions

Also available in: PDF Atom