View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009460 | mantisbt | bugtracker | public | 2008-07-31 12:58 | 2014-12-05 18:33 |
Reporter | russ | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.2 | ||||
Target Version | 1.2.18 | Fixed in Version | 1.2.18 | ||
Summary | 0009460: Default profile doesn't work | ||||
Description | Setting the default profile has no affect when reporting a bug. If a default profile is set for a user, that profile should be selected by default. The code that gets the default profile checks if the selected profiles is an empty string. The code that calls the method, passes in 0 when the profile is expecting an empty string in this case. See: print_api.php:608 - print_profile_option_list I'd suggest checking for 0 in addition/replacement of empty string check based on callers. | ||||
Tags | No tags attached. | ||||
I encountered the same issue. Do you plan to solve it? |
|
Same thing on mantisbt 1.2.17 On line 298 on /bug_report_page.php, there is: |
|
I didn't have a deeper look, but your proposed change is quite different from what dregad changed https://github.com/mantisbt/mantisbt/commit/6baf7650fe321a149302c64682f94dbdb2b51b3a |
|
poulpy55, your workaround was not addressing the root cause of the problem. The correct solution was actually outlined by russ in the original issue description. Anyway, your bumping the issue made me look at it and implement the fix, so you did contribute to the project - even indirectly - so thanks anyway. |
|
Backported to 1.2.x |
|
MantisBT: master 6baf7650 2014-07-24 14:59 Details Diff |
Set profile to user's default when reporting issues The default profile was not picked up before this, because the caller (bug_report_page.php) actually sent '0' as profile id to select, while the print functions did a strict check for ''. Fixes 0009460 |
Affected Issues 0009460 |
|
mod - core/print_api.php | Diff File | ||
MantisBT: master-1.2.x ea27796c 2014-07-24 14:59 Details Diff |
Set profile to user's default when reporting issues The default profile was not picked up before this, because the caller (bug_report_page.php) actually sent '0' as profile id to select, while the print functions did a strict check for ''. Fixes 0009460 Backport from master 6baf7650fe321a149302c64682f94dbdb2b51b3a |
Affected Issues 0009460 |
|
mod - core/print_api.php | Diff File |