SiT! Bugs - SiT!
View Issue Details
0001555SiT!incidentspublic2011-06-07 19:492011-06-24 18:03
ivan 
ivan 
normalmajorhave not tried
resolvedfixed 
Current GIT 
3.90beta1Current GIT 
0001555: rand error when adding incidents
mt_rand(): max(-1) is smaller than min(0) in /home/ivan/src/ericthefish-sit/lib/incident.inc.php @ line 370 mt_rand() suggest_reassign_userid()

Incident is still created but not re-assigned to anybody - stays with person who logged.
No tags attached.
Issue History
2011-06-07 19:49ivanNew Issue
2011-06-07 19:50ivanAdditional Information Updatedbug_revision_view_page.php?rev_id=213#r213
2011-06-07 20:02paulhNote Added: 0003894
2011-06-07 20:02paulhStatusnew => confirmed
2011-06-24 17:34ivanNote Added: 0004066
2011-06-24 18:00ivanAssigned To => ivan
2011-06-24 18:00ivanStatusconfirmed => assigned
2011-06-24 18:03ivanNote Added: 0004067
2011-06-24 18:03ivanStatusassigned => resolved
2011-06-24 18:03ivanFixed in Version => Current GIT
2011-06-24 18:03ivanResolutionopen => fixed

Notes
(0003894)
paulh   
2011-06-07 20:02   
Confirmed this could happen, from a quick read of the code looks like it would happen if there where no engineers set to accepting
(0004066)
ivan   
2011-06-24 17:34   
Tried to repro this and with no user accepting the incident is moved to the Unassigned queue (in holding queue) as expected.
(0004067)
ivan   
2011-06-24 18:03   
Git 84a4c8b: Fix for Mantis 1555 rand error when adding incidents.