Skip to content

Commit 760ba84

Browse files
committed
Resolving issue #41
1 parent 677cba6 commit 760ba84

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ At first it's recommend to discuss your feature request with the Cacti community
8787
* removed: Support of php_rrdtool extension
8888
* removed: Support of RRDtool server
8989
* removed: Support of Graidle
90+
* issue#41: When creating a new Report Template, save fails and loses all data
9091

9192
--- 1.0.1 ---
9293
* issue#2: Suppress display of 'Constant MAX_DISPLAY_PAGES is already defined'

include/global_forms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
'method' => 'checkbox',
5959
'description' => __('The status "locked" avoids any kind of modification to your report template as well as assigned measurands and variable definitions', 'reportit'),
6060
'value' => '|arg1:locked|',
61+
'default' => 'on',
6162
),
6263
'template_filter' => array(
6364
'friendly_name' => __('Additional Pre-filter', 'reportit'),

templates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ function form_save() {
670670
}
671671
}
672672

673-
/* check if we can unlock this template. */
673+
/* check if we can lock this template. */
674674
if ($template_data['locked'] == '') {
675675
if (stat_autolock_template($template_data['id'])) {
676676
raise_message('reportit_templates__3');

0 commit comments

Comments
 (0)