diff --git a/graph_templates_items.php b/graph_templates_items.php index af68f07999..9784099b31 100644 --- a/graph_templates_items.php +++ b/graph_templates_items.php @@ -167,7 +167,7 @@ function form_save() { if (!isset($orig_data_source_to_input{$save['task_item_id']})) { $ds_name = db_fetch_cell_prepared('SELECT data_source_name FROM data_template_rrd WHERE id = ?', array($_POST['task_item_id'])); - db_execute_prepared("REPLACE INTO graph_template_input (hash, graph_template_id, name, column_name) VALUES (?, ?, ?, 'task_item_id')", array(get_hash_graph_template(0, 'graph_template_input'), $save['graph_template_id'], 'Data Source [$ds_name]')); + db_execute_prepared("REPLACE INTO graph_template_input (hash, graph_template_id, name, column_name) VALUES (?, ?, ?, 'task_item_id')", array(get_hash_graph_template(0, 'graph_template_input'), $save['graph_template_id'], "Data Source [$ds_name]")); $graph_template_input_id = db_fetch_insert_id(); @@ -294,12 +294,12 @@ function item_edit() { input_validate_input_number(get_request_var_request('graph_template_id')); /* ==================================================== */ + print "