FIX: Update about/license URLs when updating theme from remote source

This commit is contained in:
David Taylor
2019-01-18 17:46:57 +00:00
parent 95f9a369a5
commit 59028035df
2 changed files with 6 additions and 5 deletions

View File

@ -139,8 +139,8 @@ class RemoteTheme < ActiveRecord::Base
theme.set_field(target: :translations, name: locale, value: value)
end
self.license_url ||= theme_info["license_url"]
self.about_url ||= theme_info["about_url"]
self.license_url = theme_info["license_url"]
self.about_url = theme_info["about_url"]
if !skip_update
self.remote_updated_at = Time.zone.now