X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FBulk.html;fp=rt%2Fshare%2Fhtml%2FSearch%2FBulk.html;h=84f2c8230203d7ba6f93bde25b6bd270fb6490ab;hb=f2a797b9cc0e9a6053399356e9e8cae22e553c9c;hp=e2b757499c9ce2cbad4b05293dca5a2d2db34d86;hpb=e141dcae4712d6fc9d5207ad42f864605788309f;p=freeside.git
diff --git a/rt/share/html/Search/Bulk.html b/rt/share/html/Search/Bulk.html
index e2b757499..84f2c8230 100755
--- a/rt/share/html/Search/Bulk.html
+++ b/rt/share/html/Search/Bulk.html
@@ -111,7 +111,13 @@
<&|/l&>Make subject&>: |
|
<&|/l&>Make priority&>: |
- <& /Elements/SelectPriority, Name => "Priority", Default => $ARGS{Priority} &> |
+% my $rel = ($ARGS{Priority} =~ s/^R//);
+ <& /Elements/SelectPriority, Name => "Priority", Default => $ARGS{Priority} &>
+
+ |
<&|/l&>Make queue&>: |
<& /Elements/SelectQueue, Name => "Queue", Default => $ARGS{Queue} &> |
<&|/l&>Make Status&>: |
@@ -283,7 +289,7 @@ $Page ||= 1;
$Format ||= RT->Config->Get('DefaultSearchResultFormat');
# inject _CHECKBOX to the first field.
-$Format =~ s/'?([^']+)'?,/'___CHECKBOX__$1',/;
+$Format =~ s/'?([^']+)'?,/'___CHECKBOX__$1',/; #'
my $Tickets = RT::Tickets->new( $session{'CurrentUser'} );
$Tickets->FromSQL($Query);
@@ -332,6 +338,13 @@ my $cf_del_keys;
my $cf_add_keys;
@$cf_add_keys = grep { /^Bulk-Add-CustomField/ } keys %ARGS;
+if ( defined($ARGS{'Priority'})
+ and ($ARGS{'Priority-Mode'} || '') eq 'relative' ) {
+ # magic in Ticket::SetPriority
+ $ARGS{'Priority'} = 'R'.$ARGS{'Priority'};
+}
+delete $ARGS{'Priority-Mode'};
+
unless ( $ARGS{'AddMoreAttach'} ) {
# Add session attachments if any to be processed by ProcessUpdateMessage
$ARGS{'UpdateAttachments'} = $session{'Attachments'} if ( $session{'Attachments'} );