Skip to content

Commit

Permalink
Adjust sort_mappings for conditions controller (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi authored Oct 31, 2024
1 parent 8ea587f commit ca739d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/event/course/conditions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Event::Course::ConditionsController < SimpleCrudController
self.nesting = Group

self.permitted_attrs = [:content, :label]
self.sort_mappings = {content: "action_text_rich_texts.body"}
self.sort_mappings = {content: {joins: [:rich_text_content], order: ["action_text_rich_texts.body"]}}

helper_method :group

Expand Down

0 comments on commit ca739d1

Please sign in to comment.