diff options
Diffstat (limited to 'lib/gitlab/graphql/pagination/keyset/conditions/base_condition.rb')
-rw-r--r-- | lib/gitlab/graphql/pagination/keyset/conditions/base_condition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/graphql/pagination/keyset/conditions/base_condition.rb b/lib/gitlab/graphql/pagination/keyset/conditions/base_condition.rb index afea7c602be..25b68db2233 100644 --- a/lib/gitlab/graphql/pagination/keyset/conditions/base_condition.rb +++ b/lib/gitlab/graphql/pagination/keyset/conditions/base_condition.rb @@ -29,7 +29,7 @@ module Gitlab def table_condition(order_info, value, operator) if order_info.named_function target = order_info.named_function - value = value&.downcase if target&.name&.downcase == 'lower' + value = value&.downcase if target.respond_to?(:name) && target&.name&.downcase == 'lower' else target = arel_table[order_info.attribute_name] end |