mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: remote theme record not saved when checking for updates (#8054)
This commit is contained in:
@@ -186,22 +186,16 @@ class Admin::ThemesController < Admin::AdminController
|
||||
update_translations
|
||||
handle_switch
|
||||
|
||||
save_remote = false
|
||||
if params[:theme][:remote_check]
|
||||
@theme.remote_theme.update_remote_version
|
||||
save_remote = true
|
||||
end
|
||||
|
||||
if params[:theme][:remote_update]
|
||||
@theme.remote_theme.update_from_remote
|
||||
save_remote = true
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
if @theme.save
|
||||
|
||||
@theme.remote_theme.save! if save_remote
|
||||
|
||||
update_default_theme
|
||||
|
||||
@theme.reload
|
||||
|
||||
Reference in New Issue
Block a user