[Rt-commit] rt branch, new-style-templates, updated. rt-3.8.8-202-gfee0d1f
Shawn Moore
sartak at bestpractical.com
Fri Jul 23 19:04:07 EDT 2010
The branch, new-style-templates has been updated
via fee0d1f08adcf01dd390c5c80cd927d94e706c79 (commit)
via 5e9b4a9dbde81aa8356b3a65f1f699439a4ba452 (commit)
from ecaed7b8a9c17045a0884f4bd8a29ebca459dedf (commit)
Summary of changes:
share/html/Admin/Global/Template.html | 2 +-
share/html/Admin/Queues/Template.html | 2 +-
t/web/template.t | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 5e9b4a9dbde81aa8356b3a65f1f699439a4ba452
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Jul 23 19:05:36 2010 -0400
Include Type in the update logic of templates
diff --git a/share/html/Admin/Global/Template.html b/share/html/Admin/Global/Template.html
index cf362c3..fe83fce 100755
--- a/share/html/Admin/Global/Template.html
+++ b/share/html/Admin/Global/Template.html
@@ -107,7 +107,7 @@ else {
}
if ($TemplateObj->Id()) {
- my @attribs = qw( Description Content Queue Name);
+ my @attribs = qw( Description Content Queue Name Type );
my @aresults = UpdateRecordObject( AttributesRef => \@attribs,
Object => $TemplateObj,
ARGSRef => \%ARGS);
diff --git a/share/html/Admin/Queues/Template.html b/share/html/Admin/Queues/Template.html
index e169ed0..8366a75 100755
--- a/share/html/Admin/Queues/Template.html
+++ b/share/html/Admin/Queues/Template.html
@@ -113,7 +113,7 @@ if ($TemplateObj->Id()) {
$Queue = $TemplateObj->Queue;
$QueueObj = $TemplateObj->QueueObj;
- my @attribs = qw( Description Content Queue Name);
+ my @attribs = qw( Description Content Queue Name Type );
my @aresults = UpdateRecordObject( AttributesRef => \@attribs,
Object => $TemplateObj,
ARGSRef => \%ARGS);
commit fee0d1f08adcf01dd390c5c80cd927d94e706c79
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Jul 23 19:05:54 2010 -0400
Test improvements
diff --git a/t/web/template.t b/t/web/template.t
index ec8fff0..99d4f65 100644
--- a/t/web/template.t
+++ b/t/web/template.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use RT::Test tests => 26;
+use RT::Test tests => 11;
my ($baseurl, $m) = RT::Test->started_ok;
@@ -30,12 +30,12 @@ $m->submit;
$m->title_is(q{Modify template Resolved}, 'modifying the Resolved template');
$m->form_name('ModifyTemplate');
-is($m->value('Type'), 'Simple');
+is($m->value('Type'), 'Simple', 'updated type to simple');
$m->field(Type => 'Full');
$m->submit;
$m->title_is(q{Modify template Resolved}, 'modifying the Resolved template');
$m->form_name('ModifyTemplate');
-is($m->value('Type'), 'Full');
+is($m->value('Type'), 'Full', 'updated type back to full');
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list