From 2ccfc396f8dd71de4fe2e63530ec0bd17b013dde Mon Sep 17 00:00:00 2001 From: cigamit Date: Sun, 10 Sep 2017 10:14:19 -0500 Subject: [PATCH] issue: Creating an independent data source does not use the systems default --- docs/CHANGELOG | 2 ++ include/global_form.php | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index b50b090a1..75c825e67 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -5,6 +5,8 @@ Cacti CHANGELOG -issue#952: CSV Export not rendering chinese characters correctly -issue#955: Validation error trying to view graph debug syntax -issue: MySQL/MariaDB database sql_mode NO_AUTO_VALUE_ON_ZERO corrupts Cacti database +-issue: When creating a data source, the data source profile does not default +to the system default -feature: Enhance table filters to supprt new Cycle plugin 1.1.21 diff --git a/include/global_form.php b/include/global_form.php index 81a812b34..27926b8f9 100644 --- a/include/global_form.php +++ b/include/global_form.php @@ -398,6 +398,7 @@ $struct_data_source = array( 'method' => 'drop_sql', 'description' => __('Select the Data Source Profile. The Data Source Profile controls polling interval, the data aggregation, and retention policy for the resulting Data Sources.'), 'sql' => 'SELECT id, name FROM data_source_profiles ORDER BY name', + 'default' => db_fetch_cell('SELECT id FROM data_source_profiles ORDER BY `default` DESC LIMIT 1'), 'none_value' => __('External'), 'flags' => '' ),