[freeside-commits] freeside/rt/share/html/Search Bulk.html, 1.1.1.3, 1.2
Mark Wells
mark at wavetail.420.am
Mon May 16 16:28:21 PDT 2011
- Previous message: [freeside-commits] freeside/rt/lib/RT Ticket_Vendor.pm,NONE,1.1
- Next message: [freeside-commits] freeside/httemplate/view/cust_main/packages location.html, 1.9, 1.10 package.html, 1.9, 1.10 section.html, 1.2, 1.3 services.html, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/rt/share/html/Search
In directory wavetail.420.am:/tmp/cvs-serv7829/share/html/Search
Modified Files:
Bulk.html
Log Message:
increment priority via bulk ticket update, #12901
Index: Bulk.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/Search/Bulk.html,v
retrieving revision 1.1.1.3
retrieving revision 1.2
diff -u -w -d -r1.1.1.3 -r1.2
--- Bulk.html 17 Feb 2011 00:25:10 -0000 1.1.1.3
+++ Bulk.html 16 May 2011 23:28:19 -0000 1.2
@@ -111,7 +111,13 @@
<tr><td class="label"> <&|/l&>Make subject</&>: </td>
<td class="value"> <input name="Subject" size="20" value="<% $ARGS{Subject} || '' %>"/> </td></tr>
<tr><td class="label"> <&|/l&>Make priority</&>: </td>
-<td class="value"> <& /Elements/SelectPriority, Name => "Priority", Default => $ARGS{Priority} &> </td></tr>
+% my $rel = ($ARGS{Priority} =~ s/^R//);
+<td class="value"> <& /Elements/SelectPriority, Name => "Priority", Default => $ARGS{Priority} &>
+<select name="Priority-Mode">
+<option value="absolute" <% !$rel && 'selected' %>>absolute</option>
+<option value="relative" <% $rel && 'selected' %>>relative</option>
+</select>
+</td></tr>
<tr><td class="label"> <&|/l&>Make queue</&>: </td>
<td class="value"> <& /Elements/SelectQueue, Name => "Queue", Default => $ARGS{Queue} &> </td></tr>
<tr><td class="label"> <&|/l&>Make Status</&>: </td>
@@ -283,7 +289,7 @@
$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_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'} );
- Previous message: [freeside-commits] freeside/rt/lib/RT Ticket_Vendor.pm,NONE,1.1
- Next message: [freeside-commits] freeside/httemplate/view/cust_main/packages location.html, 1.9, 1.10 package.html, 1.9, 1.10 section.html, 1.2, 1.3 services.html, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list