diff options
author | xue <> | 2006-04-18 02:41:35 +0000 |
---|---|---|
committer | xue <> | 2006-04-18 02:41:35 +0000 |
commit | 4dba56d6709d495c8ded0b8e4fa2d6fdaa225cc0 (patch) | |
tree | 75739bab44cd204b57e8c55cb9e5591852d73ddb | |
parent | 117fa9bc23399c241ba42e5d085bc8784c752583 (diff) |
Fixed #135.
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | demos/personal/protected/Pages/Home.page | 1 | ||||
-rw-r--r-- | framework/Util/TLogRouter.php | 15 |
3 files changed, 12 insertions, 7 deletions
@@ -1,7 +1,8 @@ Version 3.0.0 May 1, 2006
=========================
BUG: Ticket#131 - TImageMap and TLinkButton continue to postback even client validator fails (Wei)
-BUT: Non-control components can now use expressions in their properties (Qiang)
+BUG: Ticket#135 - TBrowserLogRoute reports wrong timings (Qiang)
+BUG: Non-control components can now use expressions in their properties (Qiang)
BUG: TControl.Visible did not make use of overriden getVisible() (Qiang)
BUG: TWizard did not stop navigation upon a validation failure (Qiang)
ENH: TButton, TImageButton and TLinkButton now implement IButtonControl interface (Qiang)
diff --git a/demos/personal/protected/Pages/Home.page b/demos/personal/protected/Pages/Home.page index bd8bd2c7..204d4c6f 100644 --- a/demos/personal/protected/Pages/Home.page +++ b/demos/personal/protected/Pages/Home.page @@ -1,4 +1,3 @@ <com:TContent ID="main">
main content
-<com:TTextBox ID="TextBox" />
</com:TContent>
\ No newline at end of file diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 06d70b1e..234d00e3 100644 --- a/framework/Util/TLogRouter.php +++ b/framework/Util/TLogRouter.php @@ -595,13 +595,18 @@ class TBrowserLogRoute extends TLogRoute $even = true;
$response = $this->getApplication()->getResponse();
$response->write($this->renderHeader());
- foreach($logs as $log)
+ for($i=0,$n=count($logs);$i<$n;++$i)
{
- $timing['total'] = $log[3] - $first;
- $timing['delta'] = $log[3] - $prev;
+ //$timing['total'] = $log[3] - $first;
+ //$timing['delta'] = $log[3] - $prev;
+ $timing['total'] = $logs[$i][3] - $first;
+ if ($i<$n-1)
+ $timing['delta'] = $logs[$i+1][3] - $logs[$i][3];
+ else
+ $timing['delta'] = '?';
$timing['even'] = !($even = !$even);
- $prev=$log[3];
- $response->write($this->renderMessage($log,$timing));
+ //$prev=$log[3];
+ $response->write($this->renderMessage($logs[$i],$timing));
}
$response->write($this->renderFooter());
}
|