File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11# Mantiene l'insieme dei risultati applicando il group by a mano a mano che
22# vengono aggiunti
33class Grouer
4- attr_reader :time_entries
4+ attr_reader :time_entries
55
66 def initialize ( campi_gby )
77 @campi = campi_gby
@@ -18,7 +18,9 @@ def add_time_entry(entry)
1818 raise "TimeEntry \" #{ entry . inspect } \" non valida" if entry . nil?
1919
2020 entry . class . class_eval do
21- attr_accessor :attributes
21+ def attributes
22+ @attributes
23+ end
2224 end
2325
2426 # da attributes estraggo uno hash con le sole chiavi di @campi
@@ -65,7 +67,7 @@ def checks
6567end
6668
6769class CustomTimesheet
68- # Campi da visualizzare
70+ # Campi da visualizzare
6971 attr_accessor :selected_fields
7072
7173 # Filtri
@@ -180,6 +182,8 @@ def retrieve_time_entries(fields, sort)
180182 results . each { |t | g . add_time_entry t }
181183 @time_entries = g . time_entries
182184
185+ #@time_entries = results
186+
183187 calculate_total_time
184188 end
185189
You can’t perform that action at this time.
0 commit comments