Answers with the same voting score are not shown

Bug #1011595 reported by Kiran Hampal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementaryweb
Fix Committed
High
Unassigned

Bug Description

On the new system.

The offending code appears to be this:

$answers = array();
$solution = array();
foreach($question_data->ownAnswer as $answer) {
 if($answer->solution) {
  $solution[] = $answer;
  } else {
  // This appears to be the problem due to the same key
  $answers[$answer->votes] = $answer;
 }
}
krsort($answers);

Kiran Hampal (khampal)
Changed in elementaryweb:
status: New → Won't Fix
importance: Undecided → High
milestone: none → 2.0-alpha
description: updated
Changed in elementaryweb:
status: Won't Fix → Confirmed
Changed in elementaryweb:
assignee: nobody → Aiden Cott (aidenc)
status: Confirmed → In Progress
Kiran Hampal (khampal)
Changed in elementaryweb:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.