From 1144312a89d0a9d9598f7279bb7c7b8f65e5b0b9 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 31 Oct 2018 12:04:36 -0700 Subject: [PATCH] textarea for SQL external statements, RT#78543 --- FS/FS/part_pkg/sql_external.pm | 1 + httemplate/edit/part_pkg.cgi | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/FS/FS/part_pkg/sql_external.pm b/FS/FS/part_pkg/sql_external.pm index a3866f34e..3cdfe992e 100644 --- a/FS/FS/part_pkg/sql_external.pm +++ b/FS/FS/part_pkg/sql_external.pm @@ -44,6 +44,7 @@ our @detail_cols = ( qw(amount format duration phonenum accountcode 'default' => '', }, 'query' => { 'name' => 'SQL query', + 'type' => 'textarea', 'default' => '', }, diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 84aac5bde..a6a2a89c5 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -987,6 +987,14 @@ my $html_bottom = sub { : $href->{$field}{'default'} ). qq!">!; + } elsif ( $href->{$field}{'type'} eq 'textarea' ) { + + $html .= qq!!; + } elsif ( $href->{$field}{'type'} eq 'checkbox' ) { $html .= qq!