[Rt-commit] rt branch, 4.2/consistent-time-taken, updated. rt-4.0.5-254-g88ad6a4
Ruslan Zakirov
ruz at bestpractical.com
Wed Jun 13 19:35:13 EDT 2012
The branch, 4.2/consistent-time-taken has been updated
via 88ad6a452bea8fc7cb4a5822b78f6d35b7d1bd87 (commit)
from faea2fca97c588ffacf7f285b2e2a222d1ce713a (commit)
Summary of changes:
lib/RT/Ticket.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 88ad6a452bea8fc7cb4a5822b78f6d35b7d1bd87
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Thu Jun 14 02:28:00 2012 +0400
use __Value to avoid ACL checks
User may not have rights to see newly created tickets. Rights
to update can be also granted with rights to see ticket.
diff --git a/lib/RT/Ticket.pm b/lib/RT/Ticket.pm
index 95d622e..20ea161 100644
--- a/lib/RT/Ticket.pm
+++ b/lib/RT/Ticket.pm
@@ -3509,7 +3509,7 @@ sub _UpdateTimeTaken {
my %rest = @_;
if ( my $txn = $rest{'Transaction'} ) {
- return if $txn->Type eq 'Set' && $txn->Field eq 'TimeWorked';
+ return if $txn->__Value('Type') eq 'Set' && $txn->__Value('Field') eq 'TimeWorked';
}
my $Total = $self->__Value("TimeWorked");
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list