Flyspray - The bug killer!

  • Status Unconfirmed
  • Percent Complete
    50%
  • Task Type Bug Report
  • Category Backend/Core
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 1.0-rc
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Flyspray - The bug killer!
Opened by Arthmoor - 23.01.2017
Last edited by peterdd - 24.01.2017

FS#2330 - PHP Notice: Undefined offset: 0 in scripts/index.php on line 432

Pretty minor, but seems to show up regularly enough in our logs. The line in question:

$outfile = str_replace(' ', '_', $tasks[0]['project_title']).'_'.date("Y-m-d").'.csv';
Project Manager
peterdd commented on 24.01.2017 00:33
$outfile = str_replace(' ', '_', $proj->prefs['project_title']).'_'.date("Y-m-d").'.csv';

Should fix the warning and also set the right filename when exporting from an 'all projects' task search.

Please verify that it fixes the bug, so I can merge and close this task.

Arthmoor commented on 24.01.2017 00:46

That bug has been fixed. It resulted in a new one though:

PHP Notice: Undefined index: use_effort_tracking in scripts/index.php on line 480

($user->perms('view_estimated_effort') && $proj->prefs['use_effort_tracking']) ? $task['estimated_effort'] : '',
Project Manager
peterdd commented on 24.01.2017 01:24

But only when

$proj->id==0

'all projects' tasklist , right?

Seems export_task_list() is currently written only for single project tasklist exports.

For mixed tasklists the permissions must be checked for each task.
Does anybody requires mixed tasklist export csv?

I could disable export_task_list when

$proj->id ==0

.. so no mixed csv export until it is overhauled.

Arthmoor commented on 30.01.2017 06:16

I'm assuming it's the "all project" list since as far as I know, nobody is trying to invoke this themselves.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing