-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 5.4.0
-
Component/s: Frontend (F)
-
None
Steps to reproduce:
- Setup Zabbix Froentend with Postgres database.
- Export templates to file template_os_linux.yaml and compare with Zabbix git repository.
Result:
**

Expected:
The same order of fields as in repository and in other exports using MySQL database.
Possible fix:
Something like this seems improve the behavior:
--- /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php_orig 2021-05-11 17:39:54.000000000 +0300
+++ /usr/share/zabbix/include/classes/export/CConfigurationExportBuilder.php 2021-06-01 01:33:46.837862216 +0300
@@ -1257,7 +1257,7 @@
protected function formatWidgetFields(array $fields) {
$result = [];
- CArrayHelper::sort($fields, ['type']);
+ CArrayHelper::sort($fields, ['type', 'name', 'value']);
foreach ($fields as $field) {
$result[] = [