diff options
| author | Vlatka Pavisic | 2017-01-03 16:55:24 +0100 | 
|---|---|---|
| committer | Vlatka Pavisic | 2017-01-03 16:55:24 +0100 | 
| commit | 63e20d284855f9e40706e94dc8d17558eb18e1e4 (patch) | |
| tree | 514e02de0f18c57a140eb603802afcb29d4375ec /app/controllers | |
| parent | bac2e1b1bd9111580d161b3282f52460d49783ca (diff) | |
| download | chouette-core-63e20d284855f9e40706e94dc8d17558eb18e1e4.tar.bz2 | |
Refs #2265 Refs #2262 : Calendars search and CRUD
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/calendars_controller.rb | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb index 697d8a507..579a48e1d 100644 --- a/app/controllers/calendars_controller.rb +++ b/app/controllers/calendars_controller.rb @@ -7,7 +7,7 @@ class CalendarsController < BreadcrumbController    private    def calendar_params -    params.require(:calendar).permit(:id, :name, :short_name, :shared, periods_attributes: [:id, :begin, :end, :_destroy], dates: []) +    params.require(:calendar).permit(:id, :name, :short_name, :shared, periods_attributes: [:id, :begin, :end, :_destroy], date_values_attributes: [:id, :value, :_destroy])    end    def sort_column @@ -31,10 +31,6 @@ class CalendarsController < BreadcrumbController    def collection      return @calendars if @calendars -    if params[:q] -      params[:q].delete(:shared_eq) if params[:q][:shared_eq] == '' -      params[:q].delete(:short_name_cont) if params[:q][:short_name_cont] == '' -    end      @q = current_organisation.calendars.search(params[:q])      calendars = @q.result | 
