Project

General

Profile

Actions

Defect #13790

closed

CSV Export problem

Added by Zaq1 Dev about 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

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,

ZAQ


Related issues

Is duplicate of Redmine - Defect #13618: CSV export of spent time ignores filters and columns selectionClosedJean-Philippe Lang

Actions
Actions #1

Updated by Zaq1 Dev about 11 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.

Actions #2

Updated by Zaq1 Dev about 11 years ago

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

Actions #3

Updated by Filou Centrinov almost 11 years ago

Duplicate: #13618

Actions #4

Updated by Toshi MARUYAMA almost 11 years ago

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

Filou Centrinov wrote:

Duplicate: #13618

Thank you for your pointing.

Actions

Also available in: Atom PDF