Merge pull request #7258 from opf/fix/30104/parent-wiki-title

[30104] Fix empty titled being used in new wiki page

[ci skip]
pull/7264/head
Oliver Günther 6 years ago committed by GitHub
commit b585743f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/wiki_controller.rb
  2. 2
      lib/redmine/menu_manager/top_menu/help_menu.rb

@ -393,7 +393,7 @@ class WikiController < ApplicationController
end
def wiki_page_title
params[:title] || action_name == 'new_child' ? '' : params[:id].to_s.capitalize.tr('-', ' ')
params[:title] || (action_name == 'new_child' ? '' : params[:id].to_s.capitalize.tr('-', ' '))
end
def find_wiki

@ -81,7 +81,7 @@ module Redmine::MenuManager::TopMenu::HelpMenu
end
def render_onboarding_menu_item
render_to_string(partial: 'onboarding/menu_item')
controller.render_to_string(partial: 'onboarding/menu_item')
end
def render_help_and_support(result)

Loading…
Cancel
Save