mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Fix an issue where subpriority paging could be truncated
Ref T7548. Subpriority is a float, but we're truncating it to an int, which can cause reselection of the same row while paging.
This commit is contained in:
parent
77e0a4abba
commit
106ca70acb
2 changed files with 5 additions and 2 deletions
|
@ -1066,8 +1066,8 @@ final class ManiphestTaskQuery extends PhabricatorCursorPagedPolicyAwareQuery {
|
|||
}
|
||||
$columns[] = array(
|
||||
'name' => 'task.subpriority',
|
||||
'value' => (int)$cursor->getSubpriority(),
|
||||
'type' => 'int',
|
||||
'value' => $cursor->getSubpriority(),
|
||||
'type' => 'float',
|
||||
'reverse' => true,
|
||||
);
|
||||
$columns[] = array(
|
||||
|
|
|
@ -252,6 +252,9 @@ abstract class PhabricatorCursorPagedPolicyAwareQuery
|
|||
case 'int':
|
||||
$value = qsprintf($conn, '%d', $column['value']);
|
||||
break;
|
||||
case 'float':
|
||||
$value = qsprintf($conn, '%f', $column['value']);
|
||||
break;
|
||||
case 'string':
|
||||
$value = qsprintf($conn, '%s', $column['value']);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue