Fix for crash when selecting Last Change column in device ports view

This commit is contained in:
Oliver Gorwits
2014-02-22 08:48:36 +00:00
parent 4d3b858f10
commit a67de5dbda
2 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,8 @@
[BUG FIXES]
* workaround for https://rt.cpan.org/Ticket/Display.html?id=93244
* Workaround for https://rt.cpan.org/Ticket/Display.html?id=93244 (ECR)
* Fix for crash when selecting Last Change column in device ports view (ECR)
2.023002 - 2014-02-17

View File

@@ -31,7 +31,7 @@ sub with_times {
->search({},
{
'+columns' => { lastchange_stamp =>
\("to_char(device.last_discover - (device.uptime - lastchange) / 100 * interval '1 second', "
\("to_char(device.last_discover - (device.uptime - me.lastchange) / 100 * interval '1 second', "
."'YYYY-MM-DD HH24:MI:SS')") },
join => 'device',
});