Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Search bug for status:unsolved returns topics from non-solution …
…enabled categories (#241) * FIX: Search bug for status:unsolved returns topics from non-solution enabled categories * fixed rubocop issues
- Loading branch information
1 parent
7b90566
commit 4032a1e
Showing
3 changed files
with
146 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
Fabricator(:custom_topic, from: :topic) do | ||
transient :custom_topic_name | ||
transient :value | ||
after_create do |top, transients| | ||
custom_topic = | ||
TopicCustomField.new( | ||
topic_id: top.id, | ||
name: transients[:custom_topic_name], | ||
value: transients[:value], | ||
) | ||
custom_topic.save | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters