diff options
author | ivan <ivan> | 2012-01-21 03:59:16 +0000 |
---|---|---|
committer | ivan <ivan> | 2012-01-21 03:59:16 +0000 |
commit | 3e3a07a1f96d0e2f89cde0a33583c9b1276471f1 (patch) | |
tree | 910a3052a9ce43d8f982819aeb06eaf9d609f23d /rt/lib | |
parent | fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 (diff) |
rt 3.8.11
Diffstat (limited to 'rt/lib')
-rw-r--r-- | rt/lib/RT.pm | 2 | ||||
-rw-r--r-- | rt/lib/RT/Action/CreateTickets.pm | 4 | ||||
-rw-r--r-- | rt/lib/RT/CustomField_Overlay.pm | 2 | ||||
-rw-r--r-- | rt/lib/RT/Interface/Web.pm | 9 | ||||
-rw-r--r-- | rt/lib/RT/Ticket_Overlay.pm | 12 | ||||
-rw-r--r-- | rt/lib/RT/Transaction_Overlay.pm | 2 |
6 files changed, 16 insertions, 15 deletions
diff --git a/rt/lib/RT.pm b/rt/lib/RT.pm index 50723765e..4a20f9b43 100644 --- a/rt/lib/RT.pm +++ b/rt/lib/RT.pm @@ -57,7 +57,7 @@ use Cwd (); use vars qw($Config $System $SystemUser $Nobody $Handle $Logger $_INSTALL_MODE); -our $VERSION = '3.8.10'; +our $VERSION = '3.8.11'; diff --git a/rt/lib/RT/Action/CreateTickets.pm b/rt/lib/RT/Action/CreateTickets.pm index 5a1693569..fd3e77c3a 100644 --- a/rt/lib/RT/Action/CreateTickets.pm +++ b/rt/lib/RT/Action/CreateTickets.pm @@ -723,7 +723,7 @@ sub ParseLines { } } - foreach my $date qw(due starts started resolved) { + foreach my $date (qw(due starts started resolved)) { my $dateobj = RT::Date->new( $self->CurrentUser ); next unless $args{$date}; if ( $args{$date} =~ /^\d+$/ ) { @@ -1081,7 +1081,7 @@ sub UpdateWatchers { my @results; - foreach my $type qw(Requestor Cc AdminCc) { + foreach my $type (qw(Requestor Cc AdminCc)) { my $method = $type . 'Addresses'; my $oldaddr = $ticket->$method; diff --git a/rt/lib/RT/CustomField_Overlay.pm b/rt/lib/RT/CustomField_Overlay.pm index 5e868d1c5..25394cf0f 100644 --- a/rt/lib/RT/CustomField_Overlay.pm +++ b/rt/lib/RT/CustomField_Overlay.pm @@ -1440,7 +1440,7 @@ sub SetBasedOn { return (0, "Permission denied") unless $cf->Id && $cf->CurrentUserHasRight('SeeCustomField'); - return $self->AddAttribute( + return $self->SetAttribute( Name => "BasedOn", Description => "Custom field whose CF we depend on", Content => $cf->Id, diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index 959c80334..e4167e4cc 100644 --- a/rt/lib/RT/Interface/Web.pm +++ b/rt/lib/RT/Interface/Web.pm @@ -661,10 +661,11 @@ sub InstantiateNewSession { sub SendSessionCookie { my $cookie = CGI::Cookie->new( - -name => _SessionCookieName(), - -value => $HTML::Mason::Commands::session{_session_id}, - -path => RT->Config->Get('WebPath'), - -secure => ( RT->Config->Get('WebSecureCookies') ? 1 : 0 ) + -name => _SessionCookieName(), + -value => $HTML::Mason::Commands::session{_session_id}, + -path => RT->Config->Get('WebPath'), + -secure => ( RT->Config->Get('WebSecureCookies') ? 1 : 0 ), + -httponly => ( RT->Config->Get('WebHttpOnlyCookies') ? 1 : 0 ), ); $HTML::Mason::Commands::r->err_headers_out->{'Set-Cookie'} = $cookie->as_string; diff --git a/rt/lib/RT/Ticket_Overlay.pm b/rt/lib/RT/Ticket_Overlay.pm index 2feed28dd..e8cb12863 100644 --- a/rt/lib/RT/Ticket_Overlay.pm +++ b/rt/lib/RT/Ticket_Overlay.pm @@ -472,13 +472,13 @@ sub Create { ); # Parameters passed in during an import that we probably don't want to touch, otherwise - foreach my $attr qw(id Creator Created LastUpdated LastUpdatedBy) { + foreach my $attr (qw(id Creator Created LastUpdated LastUpdatedBy)) { $params{$attr} = $args{$attr} if $args{$attr}; } # Delete null integer parameters foreach my $attr - qw(TimeWorked TimeLeft TimeEstimated InitialPriority FinalPriority) + (qw(TimeWorked TimeLeft TimeEstimated InitialPriority FinalPriority)) { delete $params{$attr} unless ( exists $params{$attr} && $params{$attr} ); @@ -815,7 +815,7 @@ sub _Parse822HeadersForAttributes { } - foreach my $date qw(due starts started resolved) { + foreach my $date (qw(due starts started resolved)) { my $dateobj = RT::Date->new($RT::SystemUser); if ( defined ($args{$date}) and $args{$date} =~ /^\d+$/ ) { $dateobj->Set( Format => 'unix', Value => $args{$date} ); @@ -2701,7 +2701,7 @@ sub MergeInto { } # Update time fields - foreach my $type qw(TimeEstimated TimeWorked TimeLeft) { + foreach my $type (qw(TimeEstimated TimeWorked TimeLeft)) { my $mutator = "Set$type"; $MergeInto->$mutator( @@ -2709,7 +2709,7 @@ sub MergeInto { } #add all of this ticket's watchers to that ticket. - foreach my $watcher_type qw(Requestors Cc AdminCc) { + foreach my $watcher_type (qw(Requestors Cc AdminCc)) { my $people = $self->$watcher_type->MembersObj; my $addwatcher_type = $watcher_type; @@ -3327,7 +3327,7 @@ sub _ApplyTransactionBatch { my $batch = $self->TransactionBatch; my %seen; - my $types = join ',', grep !$seen{$_}++, grep defined, map $_->Type, grep defined, @{$batch}; + my $types = join ',', grep !$seen{$_}++, grep defined, map $_->__Value('Type'), grep defined, @{$batch}; require RT::Scrips; RT::Scrips->new($RT::SystemUser)->Apply( diff --git a/rt/lib/RT/Transaction_Overlay.pm b/rt/lib/RT/Transaction_Overlay.pm index 89c5273e1..fdd3e948f 100644 --- a/rt/lib/RT/Transaction_Overlay.pm +++ b/rt/lib/RT/Transaction_Overlay.pm @@ -145,7 +145,7 @@ sub Create { ); # Parameters passed in during an import that we probably don't want to touch, otherwise - foreach my $attr qw(id Creator Created LastUpdated TimeTaken LastUpdatedBy) { + foreach my $attr (qw(id Creator Created LastUpdated TimeTaken LastUpdatedBy)) { $params{$attr} = $args{$attr} if ($args{$attr}); } |