Project

General

Profile

Actions

Defect #12943

closed

Create project error with existing project custome field of version type

Added by William Shen almost 12 years ago. Updated almost 12 years ago.

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

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Hi:
After I created project custome field of "version" type, I can't create new project anymore.
The system give me an error page and I checked log find the following message:

818: SELECT "versions"."id" AS t0_r0, "versions"."project_id" AS t0_r1, "versions"."name" AS t0_r2, "versions"."description" AS t0_r3, "versions"."effective_date" AS t0_r4, "versions"."created_on" AS t0_r5, "versions"."updated_on" AS t0_r6, "versions"."wiki_page_title" AS t0_r7, "versions"."status" AS t0_r8, "versions"."sharing" AS t0_r9, "projects"."id" AS t1_r0, "projects"."name" AS t1_r1, "projects"."description" AS t1_r2, "projects"."homepage" AS t1_r3, "projects"."is_public" AS t1_r4, "projects"."parent_id" AS t1_r5, "projects"."created_on" AS t1_r6, "projects"."updated_on" AS t1_r7, "projects"."identifier" AS t1_r8, "projects"."status" AS t1_r9, "projects"."lft" AS t1_r10, "projects"."rgt" AS t1_r11 FROM "versions" LEFT OUTER JOIN "projects" ON "projects".id = "versions".project_id WHERE (projects.id = OR (projects.status = 1 AND ( versions.sharing = 'system' OR (projects.lft >= AND projects.rgt <= AND versions.sharing = 'tree') OR (projects.lft < AND projects.rgt > AND versions.sharing IN ('hierarchy', 'descendants')) OR (projects.lft > AND projects.rgt < AND versions.sharing = 'hierarchy')))) ) on line #21 of app/views/projects/_form.html.erb:
18: <%= wikitoolbar_for 'project_description' >
19:
20: <
@project.custom_field_values.each do |value| >
21: <p><
= custom_field_tag_with_label :project, value ></p>
22: <
end >
23: <
= call

So I have to delete the custome field...

This is my environment:
Jruby: 1.6.8 (ruby version: 1.8)
JDK: Java 1.6.0 update 30
Database: Postgresql 8.4
Rails: 2.3.14


Related issues

Related to Redmine - Defect #10218: Error when creating a project with a version custom fieldClosedJean-Philippe Lang

Actions
Actions #1

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Same as #10218 which was fixed in 1.3.2.

Actions

Also available in: Atom PDF