[freeside-commits] freeside/rt/lib/RT Ticket_Vendor.pm,NONE,1.1
Mark Wells
mark at wavetail.420.am
Mon May 16 16:28:21 PDT 2011
Update of /home/cvs/cvsroot/freeside/rt/lib/RT
In directory wavetail.420.am:/tmp/cvs-serv7829/lib/RT
Added Files:
Ticket_Vendor.pm
Log Message:
increment priority via bulk ticket update, #12901
--- NEW FILE: Ticket_Vendor.pm ---
package RT::Ticket;
use strict;
sub SetPriority {
# Special case: Pass a value starting with 'R' to set priority
# relative to the current level. Used for bulk updates, though
# it can be used anywhere else too.
my $Ticket = shift;
my $value = shift;
if ( $value =~ /^R([+-]?\d+)$/ ) {
$value = $1 + ($Ticket->Priority || 0);
}
$Ticket->SUPER::SetPriority($value);
}
1;
More information about the freeside-commits
mailing list