FIX: Wizard icons step fields have incorrect values.

https://meta.discourse.org/t/is-the-wizard-supposed-to-not-let-you-skip-adding-icons/102417
This commit is contained in:
Guo Xiang Tan
2018-11-22 14:19:36 +08:00
parent ba280f9cf3
commit 596e09aaf9
2 changed files with 45 additions and 6 deletions

View File

@ -154,8 +154,8 @@ class Wizard
end
@wizard.append_step('icons') do |step|
step.add_field(id: 'favicon', type: 'image', value: SiteSetting.favicon)
step.add_field(id: 'apple_touch_icon', type: 'image', value: SiteSetting.apple_touch_icon)
step.add_field(id: 'favicon', type: 'image', value: SiteSetting.site_favicon_url)
step.add_field(id: 'apple_touch_icon', type: 'image', value: SiteSetting.site_apple_touch_icon_url)
step.on_update do |updater|
updater.apply_settings(:favicon)