View Issue Details

IDProjectCategoryView StatusLast Update
0013150mantisbttime trackingpublic2014-09-23 18:05
Reporterrombert Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.6 
Target Version1.2.6Fixed in Version1.2.6 
Summary0013150: Getting time tracking when no time tracking notes exist generates warning
Description

SYSTEM WARNING: array_multisort() [function.array-multisort]: Argument 0000001 is expected to be an array or a sort flag

The magic of git bisect points to

c4378b821a54d7ef30184d3144459b18673c1f42 is the first bad commit
commit c4378b821a54d7ef30184d3144459b18673c1f42
Author: Damien Regad damien.regad@merckgroup.com
Date: Fri Jul 8 17:55:32 2011 +0200

Fix #13132: Print the time tracking information sorted by username

Previously the list was printed in whatever order returned by the SQL

:100644 100644 254a9616f44fb166a6c54e7a9daeceaf410b59e6 3013db93e83483e892cab9a04678df7fea0abcc5 M billing_inc.php
:100644 100644 276a88749bdb228c5c7864cc79180674762c0854 c12c3ad72dbee633e95d5d32c7caf588ed318c1a M bugnote_stats_inc.php

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

rombert

rombert

2011-07-16 16:23

reporter   ~0029181

Damien, can you please take a look for this before 1.2.6 goes out?

Thanks,

Robert

dregad

dregad

2011-07-17 04:47

developer   ~0029182

Ooops... Thanks Robert, good catch ! I omitted this case in my tests.

Most likely the error is due to the sort array not being initialized when the function is called. I'll have a look.

rombert

rombert

2011-07-18 04:13

reporter   ~0029184

Thanks for the quick turnaround!

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036453

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 570660f5

2011-07-17 03:22

dregad


Details Diff
Fix 0013150: Getting time tracking info when none exists generates warning

This was caused by sort key arrays not being initialized before the foreach
loop, resulting in a call to array_multisort with an undefined variable.

Bug was introduced by commit c4378b821a54d7ef30184d3144459b18673c1f42
Affected Issues
0013150
mod - billing_inc.php Diff File
mod - bugnote_stats_inc.php Diff File

MantisBT: master-1.2.x a8bc7ff0

2011-07-17 03:22

dregad


Details Diff
Fix 0013150: Getting time tracking info when none exists generates warning

This was caused by sort key arrays not being initialized before the foreach
loop, resulting in a call to array_multisort with an undefined variable.

Bug was introduced by commit c4378b821a54d7ef30184d3144459b18673c1f42
Affected Issues
0013150
mod - billing_inc.php Diff File
mod - bugnote_stats_inc.php Diff File