From 793c3ae7d4648ffd12499b4a9652661d80fb759a Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sat, 8 Jan 2022 05:41:20 +0100 Subject: [PATCH] FIX: Actually save fields on themes:update (#15497) `RemoteTheme#update_from_remote` does not save theme fields on its own. Fixes theme/theme component autoupdates working only partially. --- lib/tasks/themes.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake index 34893c8f29f..d8ef7ad9b00 100644 --- a/lib/tasks/themes.rake +++ b/lib/tasks/themes.rake @@ -60,6 +60,7 @@ def update_themes puts "Updating '#{theme.name}' for '#{RailsMultisite::ConnectionManagement.current_db}'..." remote_theme.update_from_remote + theme.save! raise RemoteTheme::ImportError.new(remote_theme.last_error_text) if remote_theme.last_error_text.present? rescue => e