mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
fix dashboard search
This commit is contained in:
1 parent
5643094a7a
commit
cf85bea0df
2 files changed
+2
-2
No files matched your search
@@ -51,7 +51,7 @@ class DashboardController < ApplicationController
|
||||
|
||||
def filter_templates(templates)
|
||||
rel = templates.active.preload(:author).order(id: :desc)
|
||||
.where(folder_id: current_account.default_template_folder.id)
|
||||
rel = rel.where(folder_id: current_account.default_template_folder.id) if params[:q].blank?
|
||||
|
||||
Templates.search(rel, params[:q])
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user