mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
This reverts commit f57a49c2f9.
This had some unexpected side effects, needs some more work.
This commit is contained in:
+3
-2
@@ -315,7 +315,8 @@ class Theme < ActiveRecord::Base
|
||||
if all_themes
|
||||
message = theme_ids.map { |id| refresh_message_for_targets(targets, id) }.flatten
|
||||
else
|
||||
message = refresh_message_for_targets(targets, theme_ids).flatten
|
||||
parent_ids = Theme.where(id: theme_ids).joins(:parent_themes).pluck(:parent_theme_id).uniq
|
||||
message = refresh_message_for_targets(targets, theme_ids | parent_ids).flatten
|
||||
end
|
||||
|
||||
MessageBus.publish('/file-change', message)
|
||||
@@ -371,7 +372,7 @@ class Theme < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def list_baked_fields(target, name)
|
||||
theme_ids = Theme.transform_ids([id], extend: false)
|
||||
theme_ids = Theme.transform_ids([id])
|
||||
self.class.list_baked_fields(theme_ids, target, name)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user