Defect #13790

CSV Export problem

Added by Zaq1 Dev over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:
Priority:UrgentDue date:
Assignee:-% Done:


Category:Time tracking
Target version:-
Resolution:Duplicate Affected version:2.3.0


I will try and be as explanatory as possible, I have tried to find a solution, but couldnt but when I investigated the issues its missing a key variable, explanation goes below!

I installed the latest redmine version 2.3.0, last week and am onto 2nd week of testing, going successfully and smoothly, except for one thing:

I navigated to http://MY_LOCAL_IP:8000/time_entries/

When I apply any filter, the atom exports fine with filtered results only, but export to csv returns all the results.

Since I am a programmer, but in PHP, I tried to investigate the issue and found following:

ATOM URL: time_entries.atom?c[]=project&c[]=spent_on&c[]=user&c[]=activity&c[]=issue&c[]=comments&c[]=hours&f[]=spent_on&f[]=user_id&f[]=&key=7bd4ae99e59fad79fab2557b444b0845d9d9b720&op[spent_on]=*&op[user_id]==&utf8=✓&v[user_id][]=4

CSV URL: time_entries.csv?c[]=project&c[]=spent_on&c[]=user&c[]=activity&c[]=issue&c[]=comments&c[]=hours&f[]=spent_on&f[]=user_id&f[]=&op[spent_on]=*&op[user_id]==&utf8=✓&v[user_id][]=4

Difference between the 2 is very minor, CSV URL is missing the KEY variable, when I added the key variable and tested, it gave me correct CSV file with filtered output.

Since I am not vey well versed with Ruby and Rails, It is difficult for me to actually go through the model/views and controller, however I am still trying myself if I come across a solution I will share it with you folks, but if there is someone out there who can point it out to me explicitly on where to make the change it will make my life alot easier.

Thanks & Regards,


Related issues

Duplicates Redmine - Defect #13618: CSV export of spent time ignores filters and columns sele... Closed


#1 Updated by Zaq1 Dev over 9 years ago

The solution I posted isnt working! I suppose the key was only for my id, so its not doing as expected.

Ultimately what needs to be achieved is simple, only the filtered results should be exported in CSV, which now isnt exporting in CSV, in atom it is fine.

#2 Updated by Zaq1 Dev over 9 years ago

Can Anyone confirm me this bug exists? am I doing anything wrong here?

#3 Updated by Filou Centrinov over 9 years ago

Duplicate: #13618

#4 Updated by Toshi MARUYAMA over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Filou Centrinov wrote:

Duplicate: #13618

Thank you for your pointing.

Also available in: Atom PDF