projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.19
[freeside.git]
/
rt
/
share
/
html
/
Admin
/
Elements
/
ModifyTemplate
diff --git
a/rt/share/html/Admin/Elements/ModifyTemplate
b/rt/share/html/Admin/Elements/ModifyTemplate
index
ebe7c73
..
d12dbb4
100755
(executable)
--- a/
rt/share/html/Admin/Elements/ModifyTemplate
+++ b/
rt/share/html/Admin/Elements/ModifyTemplate
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <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>
</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>
</tr>
</table>
<%INIT>
-$Type = 'Perl' if !$Type;
+unless ($Type) {
+ $Type = $session{'CurrentUser'}->HasRight(Right => 'ExecuteCode', Object => $RT::System) ?
+ 'Perl' : 'Simple';
+}
</%INIT>
</%INIT>
@@
-77,5
+81,5
@@
$Type = 'Perl' if !$Type;
$Name => ''
$Description => ''
$Content => ''
$Name => ''
$Description => ''
$Content => ''
-$Type => '
Perl
'
+$Type => ''
</%ARGS>
</%ARGS>