mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 04:03:45 +08:00
Fix forms sorting in modal [SCI-11448]
This commit is contained in:
parent
06ea469e02
commit
50dc31e487
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class FormsController < ApplicationController
|
|||
end
|
||||
|
||||
def published_forms
|
||||
forms = current_team.forms.active.readable_by_user(current_user).published
|
||||
forms = current_team.forms.active.readable_by_user(current_user).published.order(name: :asc)
|
||||
forms = forms.where('forms.name ILIKE ?', "%#{params[:query]}%") if params[:query].present?
|
||||
forms = forms.page(params[:page])
|
||||
|
||||
|
|
Loading…
Reference in a new issue