summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-07-26 21:28:36 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-07-26 21:28:36 +0000
commit05452a7b9a6c528daeec1d3549d20bcd83943b1d (patch)
tree00558a2861d5788e60654927dfa1ce026164a71d
parentad9526ed2723d31f8ef318b1e46b02ceddcadeae (diff)
downloadredmine-05452a7b9a6c528daeec1d3549d20bcd83943b1d.tar.gz
redmine-05452a7b9a6c528daeec1d3549d20bcd83943b1d.zip
Set :wiki menu_item for WikisController#destroy (#35610).
This action is executed inside the project wiki scope after r16916, thus we can better set the menu_item accordingly. Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@21088 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/wikis_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb
index 2cc8c2f04..3171aa301 100644
--- a/app/controllers/wikis_controller.rb
+++ b/app/controllers/wikis_controller.rb
@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class WikisController < ApplicationController
- menu_item :settings
+ menu_item :wiki
before_action :find_project, :authorize
# Delete a project's wiki