diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-28 18:11:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-28 18:11:30 +0000 |
commit | 63dc83fc0d57dff4e908639d7843b0b1dc220f12 (patch) | |
tree | 989e8e32435149515b7325ad7b691a3d3a0b0ea0 /app | |
parent | 9f15517095c4877ce5ae798210b8f5204a157ec9 (diff) | |
download | redmine-63dc83fc0d57dff4e908639d7843b0b1dc220f12.tar.gz redmine-63dc83fc0d57dff4e908639d7843b0b1dc220f12.zip |
Fixed: Section-edit buttons not available when a the version parameter is provided even if it's the current version (#9674).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7970 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/wiki_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index b247867d1..8713e91c4 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -86,7 +86,7 @@ class WikiController < ApplicationController end @editable = editable? @sections_editable = @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && - params[:version].nil? && + @content.version == @page.content.version && Redmine::WikiFormatting.supports_section_edit? render :action => 'show' |