View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009888 | mantisbt | bugtracker | public | 2008-11-25 02:53 | 2009-04-20 09:49 |
| Reporter | tmatijas | Assigned To | jreese | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Intel x86 | OS | Windows | OS Version | Vista |
| Product Version | 1.1.4 | ||||
| Fixed in Version | 1.1.7 | ||||
| Summary | 0009888: Issue History Problem... build, os, os_version, and platform are not looking right and are not effected by language files. | ||||
| Description | At bottom of bug view page in history section, look at the collumn called "feild". Notice that build, os, os_version, and platform dont look right... they are lower case and os_version has an underscore. They never change no matter what laguage you use. I think there is missing commnads that tells mantis to reference the language file for those items. This should be very easy fix for the mantis team who developed this software. P.S. Same thing happens with that email you get when history changes. Also, in that email, there is NO spaces between colums and it looks way messed up - becomes sort of unreadable.. Just notice how no spaces between time, username, feild (change is ok) Example: LOOKS LIKE THIS: SHOULD LOOK LIKE THIS: | ||||
| Steps To Reproduce | Make a test ticket.. change to any language or just make changes to the english language file then make changes to build, os, os_version, and platform and you will see that build, os, os_version, and platform never change. Then look at the email you get when history changes.. You will not only see that stuff like "os_version" does not look right, but you will also see that the columns in the histry portion of the email has no spaces and is hard to read. | ||||
| Tags | No tags attached. | ||||
|
FORGOT TO ADD THIS.. Here is a clear exaple of os, os_build, platform and build not looking right in history section.. Notice the underscores and that they are lower case. I have the problem in my production 1.14 build BUT this was taken from the 1.2.0a2 build that i use for testing. Problem persists into version 1.2.. Its gotta be a simple fix... I am working on it but my PHP skill suck. 2008-11-25 02:28 administrator New Issue |
|
|
UPDATE. Well - working on finding solution. No luck yet. Like I said, my php skills somewhat suck. But I would a way to take these items out of history for those who really dont like this annoyance. Just goto bug_api.php in /core directory and comment out the following lines: history_log_event_direct( $p_bug_id, 'os', $t_old_data->os, $p_bug_data->os );history_log_event_direct( $p_bug_id, 'os_build', $t_old_data->os_build, $p_bug_data->os_build );history_log_event_direct( $p_bug_id, 'platform', $t_old_data->platform, $p_bug_data->platform );history_log_event_direct( $p_bug_id, 'build', $t_old_data->build, $p_bug_data->build );I suspect this problem also effects version, fixed_in_version, and taget_version but I cannot confirm this. |
|
|
Oh yeah - forgot to mention.. I made a WORKAROUND to this problem that works but something is still wrong with the logic somewhere because it is NOT pulling values from language file. Still, you can MANUALLY change the values in the 4 lines above. Just change the value between the ''... Example: BEFORE: AFTER: history_log_event_direct( $p_bug_id, 'OS BUILD', $t_old_data->os_build, $p_bug_data->os_build );Although this fixes formatting issues with being able to get rid of underscrores, it does nothing for language control OR messed up email format when you get alert. |
|
|
2 more work arounds for the issue that effects how the email looks in terms of padding between columns which is the second part of this bug report.. Both work arounds SUCK but it is all I have.
This workaround is what it is. Really crappy but it does work. If anyone would like to contribute it would be appreciated. |
|
|
I think the problem is this.. The top half is controlled in global config file by the following:
When you change lets say g_email_padding_length to something higher like 60 it spreads the collumn of the TOP half of the email but does NOT effect history items. Email padding seems to be missing entirely for the code that adds the history onto the email. |
|
|
HAPPY THANKSGIVING! Found a way to make changes to the column size and made it global.. looks GREAT now. Add to config_inc.php or config_defaults_inc.php: --- email separator and padding ------------$g_email_separator1 = str_pad('', 70, '='); DEFINE EMAIL COLUMN WIDTH FOR BUG HISTORYdefine( 'column1_bug_history_size', '19' ); # column 1 - Date Modified NOW REPLACE THE COMMENTED OUT LINES WITH THE ONES I HAVE PROVIDED IN email_api.php near line 1107 depending on yout build of mantis #$t_message .= str_pad( lang_get( 'date_modified' ), 17 ) . $t_message .= str_pad( lang_get( 'date_modified' ), column1_bug_history_size ) . DO THE SAME AGAIN ABOUT 20 LINES BELOW THAT SLAV EDIT - ADDING SPACE TO HISTORY - OLD VALUES ARE NEXT 4 LINES.. NEW IS 4 AFTER THAT#$t_message .= str_pad( date( $t_normal_date_format, $t_raw_history_item['date'] ), 17 ) . $t_message .= str_pad( date( $t_normal_date_format, $t_raw_history_item['date'] ), column1_bug_history_size ) . |
|
|
Sorry - messed up the commenting.. just remember 17 becomes column1_bug_history_size column 1, 2, 3, and 4 are defined in config file. |
|
|
Fixed the localisation issue with http://git.mantisbt.org/?p=mantisbt.git;a=blobdiff;f=core/history_api.php;h=28ac2e4e43d74bd44dedb377ca3e076a93e0b6da;hp=0f046617ebcb0e50094df9957a9fe881b72ab05b;hb=221bda0a2cf510591f532c9f8fb4c84f3bd9562f;hpb=3c4dd162c6a1d7f2b5a7ea22907fc5f7468a7538 Paul |
|
|
Fix has been ported to 1.1.6 development tree. |
|
|
I just tried to reproduce the bug while testing for Debian and noticed that the bug still persists (partly): 2008-12-10 09:45 administrator Neues Problem As you can see the "os_build" field is still not properly replaced. |
|
|
Fix committed to 1.1.7 development tree. I apologize for incorrectly porting Paul's commit. |
|
|
MantisBT: master 221bda0a 2008-12-06 11:53 Paul Richards Details Diff |
Fix 0009888: Issue History Problem... build, os, os_version, and platform are not looking right and are not effected by language files. |
Affected Issues 0009888 |
|
| mod - core/history_api.php | Diff File | ||
|
MantisBT: master-1.1.x 525dc9a4 2008-12-06 11:53 Paul Richards Details Diff |
Fix 0009888: Issue History Problem... build, os, os_version, and platform are not looking right and are not effected by language files. <span class="signoff">Signed-off-by: John Reese <jreese@leetcode.net></span> |
Affected Issues 0009888 |
|
| mod - core/history_api.php | Diff File | ||
|
MantisBT: master-1.1.x d80b3fb7 2008-12-10 11:41 Details Diff |
Fix 0009888: typo mistake when porting 221bda0a to 1.1.x. |
Affected Issues 0009888 |
|
| mod - core/history_api.php | Diff File | ||