Переглянути джерело

Fix being unable to search by domain (#17832)

Gomasy 2 роки тому
батько
коміт
cf5435bb27
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/views/admin/accounts/index.html.haml

+ 1 - 1
app/views/admin/accounts/index.html.haml

@@ -36,7 +36,7 @@
         = hidden_field_tag key, params[key]
 
     - %i(username by_domain display_name email ip).each do |key|
-      - unless key == :by_domain && params[:remote].blank?
+      - unless key == :by_domain && params[:origin] != 'remote'
         .input.string.optional
           = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")