[Rt-commit] r8284 - in rtir/branches/2.3-EXPERIMENTAL: .
html/RTIR/Elements
thayes at bestpractical.com
thayes at bestpractical.com
Wed Jul 25 13:08:18 EDT 2007
Author: thayes
Date: Wed Jul 25 13:08:16 2007
New Revision: 8284
Modified:
rtir/branches/2.3-EXPERIMENTAL/ (props changed)
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/QueueTabs
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html
Log:
r8426 at toth: toth | 2007-07-25 13:08:05 -0400
* Fixed locking method call syntax
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html Wed Jul 25 13:08:16 2007
@@ -261,14 +261,14 @@
if ( $ARGS{'Lock'} ) {
if ( $ARGS{'Lock'} eq 'add' ) {
- if ( $Ticket->RT::Ticket::Lock() ) {
+ if ( $Ticket->Lock() ) {
push @results, loc('You now have a lock on this ticket');
} else {
push @results, loc('Your attempt to lock this ticket failed');
}
} elsif ( $ARGS{'Lock'} eq 'remove' ) {
- my $lock = $Ticket->RT::Ticket::Locked();
+ my $lock = $Ticket->Locked();
if ( !$lock ) {
push @results, loc('This ticket was not locked');
@@ -276,7 +276,7 @@
$duration = time() - $lock->Content->{'Timestamp'};
my $date = RT::Date->new($session{'CurrentUser'});
$duration = $date->DurationAsString($duration);
- $Ticket->RT::Ticket::Unlock();
+ $Ticket->Unlock();
push @results, loc('You have unlocked this ticket (locked for ' . $duration . ')');
} else {
push @results,
@@ -285,7 +285,7 @@
}
} elsif ( $ARGS{'Lock'} eq 'break' ) {
- $Ticket->RT::Ticket::BreakLock();
+ $Ticket->BreakLock();
push @results, loc('You have broken the lock on this ticket');
}
}
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/QueueTabs
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/QueueTabs (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/QueueTabs Wed Jul 25 13:08:16 2007
@@ -343,7 +343,7 @@
}
if ($Ticket) {
-if (my $Lock = $Ticket->RT::Ticket::Locked()) {
+if (my $Lock = $Ticket->Locked()) {
if ($Lock->Content->{'User'} == $session{'CurrentUser'}->id) {
$actions->{'Lock'} = {
path => "Ticket/Display.html?Lock=remove&id=$id",
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html Wed Jul 25 13:08:16 2007
@@ -107,7 +107,7 @@
my $title;
my $Ticket = LoadTicket($id);
-$Ticket->RT::Ticket::Lock() unless $Ticket->RT::Ticket::Locked();
+$Ticket->Lock() unless $Ticket->Locked();
$id = $ARGS{'id'} = $Ticket->Id;
my $Type = RT::IR::TicketType( Ticket => $Ticket );
More information about the Rt-commit
mailing list