diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 00:16:28 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 00:16:28 -0700 |
| commit | 7588a4ac90a9b07c08a3107cd1107d773be1c991 (patch) | |
| tree | 55b8bedb5f899e705da0ba7f608267943bf89e94 /rt/share/html/Admin/Elements/ModifyTemplate | |
| parent | 98d2b25256055abb0dfcb9f586b434474fa97afd (diff) | |
RT 4.0.13
Diffstat (limited to 'rt/share/html/Admin/Elements/ModifyTemplate')
| -rwxr-xr-x | rt/share/html/Admin/Elements/ModifyTemplate | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/rt/share/html/Admin/Elements/ModifyTemplate b/rt/share/html/Admin/Elements/ModifyTemplate index ebe7c73bc..f5bb866de 100755 --- a/rt/share/html/Admin/Elements/ModifyTemplate +++ b/rt/share/html/Admin/Elements/ModifyTemplate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -63,13 +63,17 @@ </tr> <tr> <td class="label" valign="top"><&|/l&>Content</&>:</td> -<td class="value"><textarea name="Content" rows="25" cols="80" wrap="soft"><%$Content||''%></textarea></td> +<td class="value"><textarea name="Content" rows="25" cols="80" wrap="soft"> +<%$Content||''%></textarea></td> </tr> </table> <%INIT> -$Type = 'Perl' if !$Type; +unless ($Type) { + $Type = $session{'CurrentUser'}->HasRight(Right => 'ExecuteCode', Object => $RT::System) ? + 'Perl' : 'Simple'; +} </%INIT> @@ -77,5 +81,5 @@ $Type = 'Perl' if !$Type; $Name => '' $Description => '' $Content => '' -$Type => 'Perl' +$Type => '' </%ARGS> |
