Commit 61d67c9f authored by TravisCarden's avatar TravisCarden
Browse files

Fixed bug in weight sorting functionality.

parent 46a6808f
......@@ -144,9 +144,7 @@ function checklistapi_sort_array(&$array) {
uasort($children, 'element_sort');
// Remove incremental weight hack.
foreach ($children as $key => $child) {
if ($key == 'i_suck') {
$children[$key]['#weight'] = round($children[$key]['#weight']);
}
$children[$key]['#weight'] = round($children[$key]['#weight']);
}
// Put children back in the main array.
$array += $children;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment