View Issue Details

IDProjectCategoryView StatusLast Update
0014756mantisbtcode cleanuppublic2014-12-08 02:07
Reporterphyllisl Assigned Todregad  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0014756: Sub project always fails at "check_selected" method when calling print_subproject_option_list
Description

In Mantis 1.3, when user has not selected any project and goes to Report Issue page, if there is a sub project, then it always triggers the error at check_selected inside the print_subproject_option_list since one argument is always int and string as in the other.

Statically casting the type seems to solve the problem, but not sure if it is the best way...

Steps To Reproduce

Fresh Installation of Mantis 1.3 Nightly Build-> Create a project -> Create a sub-project -> Report Issue -> Crash

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 
child of 0014088 closedvboctor Mantis 1.3.0 blocking issues 

Activities

dregad

dregad

2012-10-05 04:15

developer   ~0033044

Reopening, as the fix I committed introduced a regression (Another XML error, causes by comparing a string with an int) in adm_config_report.php

dregad

dregad

2012-10-05 10:44

developer   ~0033046

both arguments to check_selected now cast to (string) - problem should no longer occur.

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036229

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 935c106f

2012-10-01 22:56

dregad


Details Diff
Fixes 0014756: mismatched types passed on to check_selected()

When trying to report an issue in a setup having subprojects, and no
specific project is selected (current project = 'All projects'), an
error is triggered in check_selected() due to mismatched types.

Statically casting the project_id as string to solve the problem.

Thanks to phyllisl for detecting and proposing a solution to this issue.
Affected Issues
0014756
mod - core/print_api.php Diff File

MantisBT: master 9f302620

2012-10-04 21:19

dregad


Details Diff
Fix XML error in adm_config_report.php

Regression introduced by 935c106f7657bacfdac1f3ad5641a9d55f6f3ca3.

Fixes 0014756
Affected Issues
0014756
mod - core/print_api.php Diff File