Skip to content

Commit

Permalink
Resolving Issue #1924
Browse files Browse the repository at this point in the history
[1.2.0] Cannot make data template with multiple data sources (snmp
indexed)
  • Loading branch information
cigamit committed Sep 15, 2018
1 parent 1ca3286 commit 83b6372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ function template_edit() {
$isSNMPget = false;

if (!isempty_request_var('id')) {
$template_data = db_fetch_row_prepared('SELECT *,
$template_data = db_fetch_row_prepared('SELECT dtd.*,
SUM(CASE WHEN dl.data_template_id = ? THEN 1 ELSE 0 END) AS data_sources
FROM data_template_data AS dtd
LEFT JOIN data_local AS dl
Expand Down

0 comments on commit 83b6372

Please sign in to comment.