diff --git a/data_source_profiles.php b/data_source_profiles.php index 390924489f..dc3caa5266 100644 --- a/data_source_profiles.php +++ b/data_source_profiles.php @@ -967,6 +967,18 @@ function profile() { $readonly = false; } + if ($profile['data_sources'] > 0) { + $ds = '' . number_format_i18n($profile['data_sources'], '-1') . ''; + } else { + $ds = number_format_i18n($profile['data_sources'], '-1'); + } + + if ($profile['templates'] > 0) { + $dt = '' . number_format_i18n($profile['templates'], '-1') . ''; + } else { + $dt = number_format_i18n($profile['templates'], '-1'); + } + form_alternate_row('line' . $profile['id'], false, $disabled); form_selectable_cell(filter_value($profile['name'], get_request_var('filter'), 'data_source_profiles.php?action=edit&id=' . $profile['id']), $profile['id']); form_selectable_cell($profile['default'] == 'on' ? __('Yes'):'', $profile['id'], '', 'text-align:right'); @@ -974,8 +986,8 @@ function profile() { form_selectable_cell($readonly ? __('Yes') : __('No'), $profile['id'], '', 'text-align:right'); form_selectable_cell($sampling_intervals[$profile['step']], $profile['id'], '', 'text-align:right'); form_selectable_cell($heartbeats[$profile['heartbeat']], $profile['id'], '', 'text-align:right'); - form_selectable_cell(number_format_i18n($profile['data_sources'], '-1'), $profile['id'], '', 'text-align:right'); - form_selectable_cell(number_format_i18n($profile['templates'], '-1'), $profile['id'], '', 'text-align:right'); + form_selectable_cell($ds, $profile['id'], '', 'text-align:right'); + form_selectable_cell($dt, $profile['id'], '', 'text-align:right'); form_checkbox_cell($profile['name'], $profile['id'], $disabled); form_end_row(); } diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 20361835ad..d78804bc23 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -15,6 +15,7 @@ Cacti CHANGELOG 1.1.35 -issue#430: Pressing Back often fails to work as expected -issue#564: Can't move items in graph template as desired +-issue#981: Hyperlinks for Data Profile stats -issue#993: Realtime not working on remote pollers for certain data query -issue#1251: Make 3rd mouse button configurable for all zoom modes. Set default to zoom out. -issue#1286: Correct CHUNKED_ENCODING error when retrieving graph with some browsers