View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014756 | mantisbt | code cleanup | public | 2012-10-02 00:01 | 2014-12-08 02:07 |
Reporter | phyllisl | Assigned To | dregad | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0dev | ||||
Target Version | 1.3.0-beta.1 | ||||
Summary | 0014756: 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 | ||||
Tags | No tags attached. | ||||
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 |
|
both arguments to check_selected now cast to (string) - problem should no longer occur. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master 935c106f 2012-10-01 22:56 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 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 |