Created
October 14, 2019 05:31
-
-
Save cherts/62b8ab8d5f87b7056595766efb5c53a4 to your computer and use it in GitHub Desktop.
Patch for Zabbix v4.4.0 to remove bracket in operational data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- frontends/php/app/views/monitoring.widget.problems.view.php.orig 2019-10-14 01:13:02.104862978 -0400 | |
| +++ frontends/php/app/views/monitoring.widget.problems.view.php 2019-10-14 01:23:01.615655216 -0400 | |
| @@ -197,7 +197,7 @@ | |
| ]; | |
| if ($show_opdata == OPERATIONAL_DATA_SHOW_WITH_PROBLEM && $opdata) { | |
| - $problem_link = array_merge($problem_link, [' (', $opdata, ')']); | |
| + $problem_link = array_merge($problem_link, [' ', $opdata]); | |
| } | |
| $description = (new CCol($problem_link)); | |
| --- frontends/php/include/blocks.inc.php.orig 2019-10-14 01:17:46.355293284 -0400 | |
| +++ frontends/php/include/blocks.inc.php 2019-10-14 01:23:46.850563154 -0400 | |
| @@ -849,7 +849,7 @@ | |
| $triggers_hosts[$trigger['triggerid']], | |
| getSeverityCell($problem['severity'], null, | |
| (($show_opdata == OPERATIONAL_DATA_SHOW_WITH_PROBLEM && $opdata) | |
| - ? [$problem['name'], ' (', $opdata, ')'] | |
| + ? [$problem['name'], ' ', $opdata] | |
| : $problem['name'] | |
| ) | |
| ), | |
| --- frontends/php/include/classes/screens/CScreenProblem.php.orig 2019-10-14 01:27:55.823064947 -0400 | |
| +++ frontends/php/include/classes/screens/CScreenProblem.php 2019-10-14 01:28:34.463999679 -0400 | |
| @@ -1083,9 +1083,8 @@ | |
| ->addClass(ZBX_STYLE_WORDWRAP); | |
| if ($show_opdata == OPERATIONAL_DATA_SHOW_WITH_PROBLEM) { | |
| - $description[] = ' ('; | |
| + $description[] = ' '; | |
| $description[] = $opdata; | |
| - $description[] = ')'; | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment