summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-14 18:26:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-14 18:26:27 +0000
commitf2acb56041b997812f4a2dc2e7258a16572df7d1 (patch)
tree46ae163fbeeba9ff056a448773632ba7620964b9 /app/controllers
parentff1343882ab9a1161b0c1308b65b66630c5b946e (diff)
downloadredmine-f2acb56041b997812f4a2dc2e7258a16572df7d1.tar.gz
redmine-f2acb56041b997812f4a2dc2e7258a16572df7d1.zip
A wiki page can now be attached to each version.
For that, edit the version and set the wiki page name (project wiki must be enabled). The wiki page content is displayed for each version on the roadmap view. git-svn-id: http://redmine.rubyforge.org/svn/trunk@564 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/wiki_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index f85c719bc..bad9b28f0 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -141,6 +141,7 @@ private
def find_wiki
@project = Project.find(params[:id])
@wiki = @project.wiki
+ render_404 unless @wiki
rescue ActiveRecord::RecordNotFound
render_404
end