[Rt-commit] rt branch, 5.0/on-email-add-time-worked, repushed
Craig Kaiser
craig at bestpractical.com
Wed Feb 3 08:13:28 EST 2021
The branch 5.0/on-email-add-time-worked was deleted and repushed:
was c802a814fff360dec561e4145871c5686505ab5d
now f444123c5e8112ff8f6a3b70cd91562bc686bceb
2: c802a814ff ! 1: 5ac68f3158 Add default scrip condition 'On Comment Or Reply'
@@ -18,3 +18,4 @@
);
+
1: cb8438a335 ! 2: f444123c5e Add RT::Action::SetTimeWorked action and initialdata action
@@ -93,6 +93,17 @@
+
+ # Only set time worked for privileged users
+ return 0 unless $self->TransactionObj->CreatorObj->Privileged;
++
++ # If we are batch stage we will check to see if any time worked values have already been set
++ if ( $self->ScripObj->Stage( TicketObj => $self->TicketObj ) eq 'TransactionBatch' ) {
++ foreach my $transaction ( @{$self->TicketObj->TransactionBatch} ) {
++ next unless $self->TransactionObj->TimeTaken;
++ return;
++ }
++ }
++ # Skip this action if TimeTaken is being updated
++ return if $self->TransactionObj->TimeTaken;
++
+ return 1;
+}
+
@@ -129,4 +140,3 @@
+RT::Base->_ImportOverlays();
+
+1;
-
More information about the rt-commit
mailing list