[Rt-commit] rt branch, 4.0/remove-dead-code, created. rt-4.0.3-46-g81092c6
Alex Vandiver
alexmv at bestpractical.com
Wed Jan 25 16:52:27 EST 2012
The branch, 4.0/remove-dead-code has been created
at 81092c664236cfc6940e8e1247a10043476d28f9 (commit)
- Log -----------------------------------------------------------------
commit 0236a29c9fca48b7729d7fd6155e9e1ddb36c0d0
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Jan 25 10:41:12 2012 -0500
Minor typo fix
diff --git a/t/web/ticket_links.t b/t/web/ticket_links.t
index 81f5f37..efb6151 100644
--- a/t/web/ticket_links.t
+++ b/t/web/ticket_links.t
@@ -24,7 +24,7 @@ is( $deleted->Status, 'deleted', "deleted $deleted_id" );
$inactive->SetStatus('resolved');
is( $inactive->Status, 'resolved', 'resolved $inactive_id' );
-# reate an article for linking
+# Create an article for linking
require RT::Class;
my $class = RT::Class->new($RT::SystemUser);
$class->Create(Name => 'test class');
commit 81092c664236cfc6940e8e1247a10043476d28f9
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Jan 25 16:52:23 2012 -0500
Remove dead code
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index b149490..31e2c8c 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -323,31 +323,6 @@ if ($CloneTicket) {
push @refers_by, $refer_by_value if defined $refer_by_value;
}
$clone->{'RefersTo-new'} = join ' ', @refers_by;
- if (0) { # Temporarily disabled
- my $depends = $CloneTicketObj->DependsOn;
- while ( my $depend = $depends->Next ) {
- push @depends, $depend->LocalTarget;
- }
- $clone->{'new-DependsOn'} = join ' ', @depends;
-
- my $depends_by = $CloneTicketObj->DependedOnBy;
- while ( my $depend_by = $depends_by->Next ) {
- push @depends_by, $depend_by->LocalBase;
- }
- $clone->{'DependsOn-new'} = join ' ', @depends_by;
-
- while ( my $member = $members->Next ) {
- push @members, $member->LocalBase;
- }
- $clone->{'MemberOf-new'} = join ' ', @members;
-
- my $members_of = $CloneTicketObj->MemberOf;
- while ( my $member_of = $members_of->Next ) {
- push @members_of, $member_of->LocalTarget;
- }
- $clone->{'new-MemberOf'} = join ' ', @members_of;
-
- }
my $cfs = $CloneTicketObj->QueueObj->TicketCustomFields();
while ( my $cf = $cfs->Next ) {
diff --git a/share/html/m/ticket/create b/share/html/m/ticket/create
index 3bf402d..b68eddd 100644
--- a/share/html/m/ticket/create
+++ b/share/html/m/ticket/create
@@ -102,31 +102,6 @@ if ($CloneTicket) {
push @refers_by, $refer_by->LocalBase;
}
$clone->{'RefersTo-new'} = join ' ', @refers_by;
- if (0) { # Temporarily disabled
- my $depends = $CloneTicketObj->DependsOn;
- while ( my $depend = $depends->Next ) {
- push @depends, $depend->LocalTarget;
- }
- $clone->{'new-DependsOn'} = join ' ', @depends;
-
- my $depends_by = $CloneTicketObj->DependedOnBy;
- while ( my $depend_by = $depends_by->Next ) {
- push @depends_by, $depend_by->LocalBase;
- }
- $clone->{'DependsOn-new'} = join ' ', @depends_by;
-
- while ( my $member = $members->Next ) {
- push @members, $member->LocalBase;
- }
- $clone->{'MemberOf-new'} = join ' ', @members;
-
- my $members_of = $CloneTicketObj->MemberOf;
- while ( my $member_of = $members_of->Next ) {
- push @members_of, $member_of->LocalTarget;
- }
- $clone->{'new-MemberOf'} = join ' ', @members_of;
-
- }
my $cfs = $CloneTicketObj->QueueObj->TicketCustomFields();
while ( my $cf = $cfs->Next ) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list