[Rt-commit] r12605 - rt/branches/3.8-TESTING/share/html/SelfService

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed May 21 11:40:09 EDT 2008


Author: sunnavy
Date: Wed May 21 11:40:08 2008
New Revision: 12605

Modified:
   rt/branches/3.8-TESTING/share/html/SelfService/Update.html

Log:
better handle selectstatus in /SelfService/Update.html

Modified: rt/branches/3.8-TESTING/share/html/SelfService/Update.html
==============================================================================
--- rt/branches/3.8-TESTING/share/html/SelfService/Update.html	(original)
+++ rt/branches/3.8-TESTING/share/html/SelfService/Update.html	Wed May 21 11:40:08 2008
@@ -59,7 +59,7 @@
             <&|/l&>Status</&>
         </td>
         <td class="value">
-            <& /Elements/SelectStatus, Name=>"Status", DefaultLabel => loc("[_1] (Unchanged)",loc($DefaultStatus)) &>
+            <& /Elements/SelectStatus, Name=>"Status", DefaultLabel => loc("[_1] (Unchanged)", loc($Ticket->Status)), Default => $ARGS{'Status'} || ($Ticket->Status eq $DefaultStatus ? undef : $DefaultStatus)&>
         </td>
     </tr>
     <tr>
@@ -113,7 +113,7 @@
 
 my $title = loc( "Update ticket #[_1]", $Ticket->id );
 
-$DefaultStatus = $Ticket->Status() unless ($DefaultStatus);
+$DefaultStatus = $ARGS{Status} || $Ticket->Status() unless ($DefaultStatus);
 
 
 Abort( loc("No permission to view update ticket") )


More information about the Rt-commit mailing list