Navigation Menu

Skip to content

Commit

Permalink
Resolving Issue #2471
Browse files Browse the repository at this point in the history
When Creating a new Graph Template, clear the Graph Template permissions cache
  • Loading branch information
cigamit committed Feb 28, 2019
1 parent 6354d64 commit 1a5243f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions graph_templates.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a5243f

Please sign in to comment.