mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 04:47:10 +08:00
Remove extra labelKey from opportunity statistic
This commit is contained in:
parent
127fb940f2
commit
4e75b51c9a
2 changed files with 1 additions and 2 deletions
|
@ -145,7 +145,6 @@ class OpportunitySalesStageTimeSpan extends LegacyHandler implements StatisticsP
|
||||||
}
|
}
|
||||||
|
|
||||||
$statistic = $this->getDateDiffStatistic(self::KEY, $start);
|
$statistic = $this->getDateDiffStatistic(self::KEY, $start);
|
||||||
$this->addMetadata($statistic, ['labelKey' => 'LBL_DAYS_IN_SALE_STAGE']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->close();
|
$this->close();
|
||||||
|
|
|
@ -276,7 +276,7 @@ class OpportunitySalesStageTimeSpanTest extends Unit
|
||||||
static::assertArrayHasKey('dataType', $result->getMetadata());
|
static::assertArrayHasKey('dataType', $result->getMetadata());
|
||||||
static::assertEquals('int', $result->getMetadata()['dataType']);
|
static::assertEquals('int', $result->getMetadata()['dataType']);
|
||||||
static::assertArrayHasKey('labelKey', $result->getMetadata());
|
static::assertArrayHasKey('labelKey', $result->getMetadata());
|
||||||
static::assertEquals('LBL_DAYS_IN_SALE_STAGE', $result->getMetadata()['labelKey']);
|
static::assertEquals('LBL_DAYS_IN_SALE_STAGE', $result->getMetadata()['endLabelKey']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue