fix_project_on_time_entry_query_filter.patch

Marius BALTEANU, 2017-08-20 11:47

Download (494 Bytes)

View differences:

app/models/time_entry_query.rb
35 35

  
36 36
  def initialize(attributes=nil, *args)
37 37
    super attributes
38
    self.filters ||= {}
39
    add_filter('spent_on', '*') unless filters.present?
38
    self.filters ||= { 'spent_on' => {:operator => "*", :values => []} }
40 39
  end
41 40

  
42 41
  def initialize_available_filters