Skip to content

Commit

Permalink
Resolving Issue #2604
Browse files Browse the repository at this point in the history
SQL error when add a dataquery
  • Loading branch information
cigamit committed Apr 10, 2019
1 parent 6ecbe88 commit 133b534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Cacti CHANGELOG

1.2.4
-issue#2590: Language selection is not working as expected
-issue#2604: SQL error when add a dataquery
-issue#2605: When checking for tables to upgrade, undefined variable $config error occurs
-issue#2608: db_update_table() function should not require an engine type or comment
-issue#2609: SQL error if upgrade cacti from pre-1.2.0
Expand Down
4 changes: 3 additions & 1 deletion data_queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ function form_save() {
if ($snmp_query_id) {
raise_message(1);

data_query_update_input_method($snmp_query_id, $previous_input_id, $save['data_input_id']);
if (isset($previous_input_id) && $previous_input_id > 0) {
data_query_update_input_method($snmp_query_id, $previous_input_id, $save['data_input_id']);
}

update_replication_crc(0, 'poller_replicate_snmp_query_crc');
} else {
Expand Down

0 comments on commit 133b534

Please sign in to comment.