Skip to content

Commit 675429f

Browse files
committed
fixed number format in /profiler/method-used-apps.json
1 parent 240c7b0 commit 675429f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
There are next changes:
66

7+
## 1.2.16
8+
9+
There are next changes:
10+
11+
- fixed /profiler/method-used-apps.json
12+
713
## 1.2.15
814

915
There are next changes:

src/Badoo/LiveProfilerUI/Pages/AjaxPages.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function getMethodUsedApps(string $method_name) : array
175175
$method_name = ltrim($method_name, '\\');
176176
try {
177177
$methods = $this->Method->findByName($method_name, true);
178-
if (!$methods) {
178+
if (empty($methods)) {
179179
return [];
180180
}
181181

@@ -207,13 +207,14 @@ public function getMethodUsedApps(string $method_name) : array
207207
$result = [];
208208
$result['app'] = $snapshots[$Row->getSnapshotId()]['app'];
209209
$result['label'] = $snapshots[$Row->getSnapshotId()]['label'];
210+
$result['date'] = $snapshots[$Row->getSnapshotId()]['date'];
210211

211212
$uniq_key = $result['app'] . '_' . $result['label'];
212213
if (!empty($results[$uniq_key])) {
213214
continue;
214215
}
215216

216-
$values = $Row->getFormattedValues();
217+
$values = $Row->getValues();
217218
foreach ($fields as $field) {
218219
$result['fields'][$field] = $values[$field];
219220
}

0 commit comments

Comments
 (0)