Fix handling of "null" domain values in Charts
Summary: Depends on D20487. If you `min(1, 2, null)`, you get `null`. We want `1`. Test Plan: Viewed a "burnup for project X" chart where one dataseries had no datapoints. Saw a sensible domain selected automatically. Reviewers: amckinley Reviewed By: amckinley Subscribers: yelirekim Differential Revision: https://secure.phabricator.com/D20488
This commit is contained in:
parent
146317f2c4
commit
10afe1f2b5
|
@ -10,10 +10,14 @@ abstract class PhabricatorHigherOrderChartFunction
|
|||
$domain = $function->getDomain();
|
||||
if ($domain !== null) {
|
||||
list($min, $max) = $domain;
|
||||
if ($min !== null) {
|
||||
$minv[] = $min;
|
||||
}
|
||||
if ($max !== null) {
|
||||
$maxv[] = $max;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$minv && !$maxv) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue