[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-29-g9c7457e
? sunnavy
sunnavy at bestpractical.com
Thu Sep 30 03:21:41 EDT 2010
The branch, 3.9-trunk has been updated
via 9c7457eef00be9469423f19f83e9d6dec9527d82 (commit)
via 5218edaa233f301b94d87f566860455c0f45b0fe (commit)
from e0d707ddfaa809b379387e4bce87a9b8f39ca21b (commit)
Summary of changes:
share/html/Ticket/Elements/ShowTransaction | 2 +-
t/web/admin_user.t | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
create mode 100644 t/web/admin_user.t
- Log -----------------------------------------------------------------
commit 5218edaa233f301b94d87f566860455c0f45b0fe
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Sep 30 15:23:25 2010 +0800
we use ShowTransaction for User and Group too and they can not show cfs
diff --git a/share/html/Ticket/Elements/ShowTransaction b/share/html/Ticket/Elements/ShowTransaction
index 884dd8e..7717c3f 100755
--- a/share/html/Ticket/Elements/ShowTransaction
+++ b/share/html/Ticket/Elements/ShowTransaction
@@ -69,7 +69,7 @@
</div>
<div class="content">
-% if ( $type_class eq 'message') {
+% if ( $type_class eq 'message' && $Transaction->ObjectType eq 'RT::Ticket' ) {
<& /Elements/ShowCustomFields, Object => $Transaction &>
% }
% $m->comp('ShowTransactionAttachments', %ARGS, Parent => 0) unless ($Collapsed ||!$ShowBody);
commit 9c7457eef00be9469423f19f83e9d6dec9527d82
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Sep 30 15:24:11 2010 +0800
admin_user.t, initially a regress test of 1f43a1cef5f0
diff --git a/t/web/admin_user.t b/t/web/admin_user.t
new file mode 100644
index 0000000..7f34f11
--- /dev/null
+++ b/t/web/admin_user.t
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use RT::Test tests => 5;
+
+my ( $url, $m ) = RT::Test->started_ok;
+ok( $m->login(), 'logged in' );
+
+my $root = RT::User->new( $RT::SystemUser );
+$root->Load('root');
+ok( $root->id, 'loaded root' );
+
+
+diag "test the history page" if $ENV{TEST_VERBOSE};
+$m->get_ok( $url . '/Admin/Users/History.html?id=' . $root->id );
+$m->content_contains('User created', 'has User created entry');
+
+# TODO more /Admin/Users tests
+
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list