Importa i prospect Calcio a 5 senza toccare la Pallavolo e filtra le organizzazioni per sport.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,6 +5,7 @@ class OrganizationsController < ApplicationController
|
||||
|
||||
def index
|
||||
@page_title = "Organizzazioni"
|
||||
@sport_options = organizations_for_current_project.where.not(sport: [ nil, "" ]).distinct.order(:sport).pluck(:sport)
|
||||
scope = organizations_for_current_project.includes(:assigned_user, :contacts, :opportunities, :tasks, :projects)
|
||||
scope = scope.search(params[:q]) if params[:q].present?
|
||||
scope = apply_filters(scope)
|
||||
|
||||
Reference in New Issue
Block a user