Project

General

Profile

Actions

Defect #1436

closed

Bad rendering on projects/add

Added by Pierre Paysant-Le Roux almost 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
Start date:
2008-06-12
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

  • Go to /projects/add (must be admin) (note that the page has no title)
  • Enter only in the form
  • Click save button

Error are reported and the page is scrambled. Observed on Firefox 2 and 3.

A workaround is to replace this line of app/views/layouts/base.rhtml
<h1><%= h(@project ? @project.name : Setting.app_title) %></h1>
by this one
<h1><%= h((@project and !@project.name.blank?) ? @project.name : Setting.app_title) %></h1>

Actions #1

Updated by Pierre Paysant-Le Roux almost 16 years ago

  • Enter only in the form
    is
  • Enter only a name in the form
Actions #2

Updated by Jean-Philippe Lang almost 16 years ago

I couldn't reproduce the problem. But the page has no title indeed, when adding a new project.
I've applied a different fix in r1526 (display the project name only after it was saved).
Can you confirm it's OK ?

Actions #3

Updated by Pierre Paysant-Le Roux almost 16 years ago

  • Status changed from New to Resolved

r1526 solved this issue.

Actions #4

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from Resolved to Closed
  • Target version set to 0.7.2
  • Resolution set to Fixed

Thanks.

Actions

Also available in: Atom PDF