aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-13 21:48:44 +1300
committerGitHub <noreply@github.com>2017-02-13 21:48:44 +1300
commit66171b939e4d20ecae0014bb61862e1880e9c6c5 (patch)
tree4e2f4953ab56070225e93e0c2e2497514a45f94f /web/app/view/ReportController.js
parent1db0f3fce321a6f22da47998a53f6a5bf7bc7b36 (diff)
parent12684a1284721b83e189d93969e00eb8b8564448 (diff)
downloadtrackermap-web-66171b939e4d20ecae0014bb61862e1880e9c6c5.tar.gz
trackermap-web-66171b939e4d20ecae0014bb61862e1880e9c6c5.tar.bz2
trackermap-web-66171b939e4d20ecae0014bb61862e1880e9c6c5.zip
Merge pull request #407 from Abyss777/fix_405
Use more efficient method to lookup store (fix #405)
Diffstat (limited to 'web/app/view/ReportController.js')
-rw-r--r--web/app/view/ReportController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index d53abed7..9decb652 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -437,7 +437,7 @@ Ext.define('Traccar.view.ReportController', {
dataIndex: 'geofenceId',
renderer: function (value) {
if (value !== 0) {
- return Ext.getStore('Geofences').findRecord('id', value).get('name');
+ return Ext.getStore('Geofences').getById(value).get('name');
}
}
}],