[Rt-commit] r2718 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: . etc html/Elements/RT__Ticket html/Ticket lib/t/regression

jesse at bestpractical.com jesse at bestpractical.com
Sat Apr 16 04:18:28 EDT 2005


Author: jesse
Date: Sat Apr 16 04:18:27 2005
New Revision: 2718

Modified:
   rt/branches/PLATANO-EXPERIMENTAL-CSS/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/RT_Config.pm.in
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/RT__Ticket/ColumnMap
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Ticket/Display.html
   rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t
Log:
 r13107 at hualien:  jesse | 2005-04-16 03:12:17 -0400
  r13006 at hualien:  jesse | 2005-04-16 02:27:03 -0400
   r12747 at hualien:  jesse | 2005-04-12 07:10:14 -0400
   * Allow click-to-sort on requestor/cc/admincc
  
 


Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/RT_Config.pm.in	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/etc/RT_Config.pm.in	Sat Apr 16 04:18:27 2005
@@ -281,12 +281,15 @@
 
 Set($WebPath , "");
 
-Set($WebPort , 80 + ($< * 7274) % 32766 + ($< && 1024));
+# If we're running as a superuser, run on port 80
+# Otherwise, pick a high port for this user.
+
+Set($WebPort , 80);# + ($< * 7274) % 32766 + ($< && 1024));
 
 # This is the Scheme, server and port for constructing urls to webrt
 # $WebBaseURL doesn't need a trailing /
 
-Set($WebBaseURL , "http://RT::WebBaseURL.not.configured:$WebPort");
+Set($WebBaseURL , "http://localhost:$WebPort");
 
 Set($WebURL , $WebBaseURL . $WebPath . "/");
 

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/RT__Ticket/ColumnMap	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/RT__Ticket/ColumnMap	Sat Apr 16 04:18:27 2005
@@ -193,12 +193,15 @@
         value     => sub { return $_[0]->TimeEstimated }
     },
     Requestors => {
+        attribute => 'Requestor.EmailAddress',
         value => sub { return $_[0]->Requestors->MemberEmailAddressesAsString }
     },
     Cc => {
+        attribute => 'Cc.EmailAddress',
         value => sub { return $_[0]->Cc->MemberEmailAddressesAsString }
     },
     AdminCc => {
+        attribute => 'AdminCc.EmailAddress',
         value => sub { return $_[0]->AdminCc->MemberEmailAddressesAsString }
     },
     StartsRelative => {

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Ticket/Display.html
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Ticket/Display.html	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Ticket/Display.html	Sat Apr 16 04:18:27 2005
@@ -143,6 +143,17 @@
     push (@Actions, @BasicActions, @results);
 }
 
+if (@Actions) {
+    # We've done something, so we need to clear the decks to avoid 
+    # resubmission on refresh.
+    # But we need to store Actions somewhere too, so we don't lose them.
+    $session{"Actions"} = \@Actions;
+    $m->redirect($RT::WebURL."/Ticket/Display.html?id=".$TicketObj->id);
+    return;
+} else {
+    @Actions = @{$session{"Actions"} || [] };
+    delete $session{"Actions"};
+}
 
 
 $m->comp('/Elements/Callback', _CallbackName => 'BeforeDisplay',

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t	Sat Apr 16 04:18:27 2005
@@ -52,6 +52,9 @@
 $agent->field('Content' => $string);
 ok($agent->submit(), "Created new ticket with $string as Content");
 like( $agent->{'content'}, qr{$string} , "Found the content");
+ok($agent->{redirected_uri}, "Did redirection");
+
+
 $agent->get($url."Ticket/Create.html?Queue=1");
 is ($agent->{'status'}, 200, "Loaded Create.html");
 $agent->form(3);


More information about the Rt-commit mailing list