Skip to content

Commit

Permalink
Resolving Issue #2118
Browse files Browse the repository at this point in the history
[1.2.0 Beta2] Any data template with script data input method missing
'output field'
  • Loading branch information
cigamit committed Nov 6, 2018
1 parent 7ed42a3 commit 8a283b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_templates.php
Expand Up @@ -667,7 +667,7 @@ function template_edit() {
WHERE id = ?',
array($template_data['data_input_id']));

if ($input_type == 1 || $input_type == 2 || $input_type == 3 || $input_type == 4 || $input_type == 6) {
if ($input_type != 1 && $input_type != 5) {
unset($struct_data_source_item['data_input_field_id']);
} else {
$struct_data_source_item['data_input_field_id']['sql'] = "SELECT id, CONCAT(data_name, ' - ', name) AS name FROM data_input_fields WHERE data_input_id=" . $template_data['data_input_id'] . " AND input_output='out' AND update_rra='on' ORDER BY data_name, name";
Expand Down

0 comments on commit 8a283b1

Please sign in to comment.