[ZBX-6692] A couple of problems with triggers that have no events in the Monitoring - Triggers page Created: 2013 Jun 12  Updated: 2017 May 30  Resolved: 2013 Jun 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.7, 2.1.0
Fix Version/s: 2.1.0

Type: Incident report Priority: Minor
Reporter: Pavels Jelisejevs (Inactive) Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: frontend, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

1. If we create a new trigger and open the Monitoring - Triggers section, the duration of the trigger state in the "Age" column is displayed as "43y 5m 23d". If a trigger has no "last change" date, the age should be displayed at all.
2. If a trigger has no events, the date in the "Last change" column should be displayed as plain text, not a link.



 Comments   
Comment by Ivo Kurzemnieks [ 2013 Jun 12 ]

When there is no "last change", age is no longer displayed and link from "never" is removed.

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-6692

Comment by Eduards Samersovs (Inactive) [ 2013 Jun 12 ]

(1) If in monitoring trigger page age cell is empty will be better to write "-" (same like in "Latest data" page)

iivs RESOLVED in r36326
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2013 Jun 12 ]

(2) tr_status.php:791 can be optimized to better view:
!empty($trigger['lastchange']) ? zbx_date2age($trigger['lastchange']) : ''
can be changed to:
empty($trigger['lastchange']) ? '' : zbx_date2age($trigger['lastchange'])

We always try write code without redundant operators. Same for tr_status.php:725 line.

iivs RESOLVED in r36326
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2013 Jun 13 ]

Tested, super!

Comment by Ivo Kurzemnieks [ 2013 Jun 13 ]

Fixed in pre-2.0.1 (trunk) r36349

Generated at Fri Apr 19 04:03:09 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.