diff --git a/CHANGELOG b/CHANGELOG index 65c09866da..1814c13b6f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ Cacti CHANGELOG -issue#2456: When attempting to display actions that can be taken, having no actions caused error -issue#2457: Not seeing confirmation when creating a new graph -issue#2459: ss_host_disk.php attempts to return an empty array instead of a string +-issue#2471: When Creating a new Graph Template, clear the Graph Template permissions cache -issue: cmd.php not updating Device polling times -issue: Multiple sort not working properly using functions and not reseting diff --git a/graph_templates.php b/graph_templates.php index 9976c20aba..21d8e66ee9 100644 --- a/graph_templates.php +++ b/graph_templates.php @@ -166,6 +166,11 @@ function form_save() { $save2['left_axis_formatter'] = form_input_validate((isset_request_var('left_axis_formatter') ? get_nfilter_request_var('left_axis_formatter') : ''), 'left_axis_formatter', '', true, 3); if (!is_error_message()) { + // Clear the Graph Template cache + if (empty($graph_template_id)) { + clear_cached_allowed_types(); + } + $graph_template_id = sql_save($save1, 'graph_templates'); if ($graph_template_id) {