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.
This commit is contained in:
Jarek Radosz 2022-01-08 05:41:20 +01:00 committed by GitHub
parent a850568a52
commit 793c3ae7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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