Closed xmacan closed 5 months ago
workaround is in setup.php in function thold_device_edit_pre_bottom() about line 1242 change: $threshold_templates = db_fetch_assoc_prepared('SELECT pth.thold_template_id, tt.name ... to $threshold_templates = db_fetch_assoc_prepared('SELECT distinctrow pth.thold_template_id, tt.name ....
Should be fixed now.
It seems that new thresholds are displayed correctly. Old threshold (from 1.5 or 1.6) are displayed more times:
Query is: SELECT pth.thold_template_id, tt.name, tt.id FROM plugin_thold_host AS pth INNER JOIN thold_template AS tt ON tt.id = pth.thold_template_id WHERE pth.host_id = 1048 ORDER BY name;
SQL answer for newly created tholds: