Skip to content

A platform for community discussion. Free, open, simple.

FIX: Actually save fields on themes:update (#15497)

Jarek Radosz793c3ae7d464
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