View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0008258 | mantisbt | filters | public | 2007-08-11 23:44 | 2009-10-10 02:01 |
| Reporter | pengzhw | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | sometimes |
| Status | acknowledged | Resolution | open | ||
| OS | Windows XP | ||||
| Product Version | 1.0.8 | ||||
| Summary | 0008258: last updated date of all issues sometimes shown bold | ||||
| Description | We are recently upgrading PHP from 4.4.x to PHP 5.2.3. Sometimes when we login with "All Projects", the last updated date of all issues are shown in bold font. If I choose some specific project, the dates are shown as normal. Last update date was shown by function print_column_last_updated() in the file core/columns_api.php. By using short debugging code as following, I found $t_filter['highlight_changed'] is blank or null: if ( $p_row['last_updated'] > strtotime( '-'.$t_filter['highlight_changed'].' hours' ) ) } else For PHP5, $p_row['last_updated'] > strtotime('-'.$t_filter['highlight_changed'].' hours' ) is always true in case of null/blank $t_filter['highlight_changed'], which leads to bold last updated date. But for PHP4, it is always false. | ||||
| Additional Information | server: Apache 2.0.59 for Win32, PHP 5.2.3/PHP 4.4.7, mantis 1.0.6/1.0.8, | ||||
| Tags | patch | ||||
|
Steps to reproduce:
For PHP 4 do something like this:#LoadModule php4_module "C:/php-4.4.x-Win32/php4apache2.dll" Don't forget to copy the php4apache2.dll file from the sapi directory!#AddType application/x-httpd-php .php For PHP 5 do something like this:LoadModule php5_module "C:/php-5.2.x-Win32/php5apache2.dll" configure the path to php.iniPHPIniDir "C:/php-5.2.x-Win32"
This is due to blank-valued $t_filter['highlight_changed']. But what causes it blank?
|
|