PDA

View Full Version : Post Steps To reproduce to Mantis


zvasku
14-Dec-2009, 11:27 AM
Hello,

there is a problem with posting reports to Mantis with Steps To Reprouce field filled with national characters. Text must be coded in UTF8 before posting.

In .PostBug change line:


...
begin
UTF8ProjectName := StringToUtf8(AProjectName);
UTF8Category := StringToUtf8(ACategory);
UTF8AssignTo := StringToUtf8(AAssignTo);
UTF8StepsToReproduce := StringToUtf8(ACustomFields.Values['EL_ReproduceText']); <-- Line Added
Connection := FHTTPConnectionClass.Create(ABaseURL, AProxyURL);
try
with Connection do
...
...
...
AddField('os', ACustomFields.Values['EL_OSType']);
AddField('os_build', ACustomFields.Values['EL_OSBuild']);
AddField('build', AVersion);
AddBugSummary('summary', AVersion, ABugType, ABugID);
AddField('description', ABugText);
AddField('steps_to_reproduce', UTF8StepsToReproduce); <--- Here
AddField('additional_info', '');
AddField('view_state', '10');
AddFieldValue('report_stay');


Versions: EL 6.0.20, 21, 22

Best regards
Zdenek

admin
16-Dec-2009, 04:06 PM
Hi Zdenek,

thank you for the good feedback, I have just added your fix in the 6.0.23 RC 1 version (I hope to release this RC asap)! :)