X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FQueues%2FTemplate.html;h=5d5bc1c71a5664427eb5d0583bfe0eec69353710;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=8e4cd23626efd18288a9ce4d978096ab35f0a289;hpb=919e930aa9279b3c5cd12b593889cd6de79d67bf;p=freeside.git diff --git a/rt/share/html/Admin/Queues/Template.html b/rt/share/html/Admin/Queues/Template.html index 8e4cd2362..5d5bc1c71 100755 --- a/rt/share/html/Admin/Queues/Template.html +++ b/rt/share/html/Admin/Queues/Template.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -59,10 +59,10 @@ %# hang onto the queue id <& /Admin/Elements/ModifyTemplate, - Name => $TemplateObj->Name, - Description => $TemplateObj->Description, - Content => $TemplateObj->Content, - Type => $TemplateObj->Type + Name => $TemplateObj->Name // $ARGS{Name}, + Description => $TemplateObj->Description // $ARGS{Description}, + Content => $TemplateObj->Content // $ARGS{Content}, + Type => $TemplateObj->Type // $ARGS{Type}, &> <& /Elements/Submit, Label => $SubmitLabel, Reset => 1 &> @@ -80,7 +80,6 @@ if ( !$Create ) { if ( $Template eq 'new' ) { my ( $val, $msg ) = $TemplateObj->Create( Queue => $Queue, Name => $Name, Type => $Type ); - Abort( loc( "Could not create template: [_1]", $msg ) ) unless ($val); push @results, $msg; } else { $TemplateObj->Load($Template) || Abort( loc('No Template') ); @@ -102,6 +101,7 @@ if ( $TemplateObj->Id() ) { my ( $ok, $msg ) = $TemplateObj->CompileCheck; push @results, $msg if !$ok; } else { + $Create = 1; $QueueObj = RT::Queue->new( $session{'CurrentUser'} ); $QueueObj->Load($Queue); }