View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017322 | mantisbt | attachments | public | 2014-05-11 12:02 | 2014-12-05 18:33 |
Reporter | Tealk | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.17 | ||||
Target Version | 1.2.18 | Fixed in Version | 1.2.18 | ||
Summary | 0017322: Warning in bug report when attachments are disabled | ||||
Description | If i Report a Bug i get this error: The Report is running fine but i get this error all times | ||||
Steps To Reproduce | http://bug.anzahcraft.de | ||||
Tags | No tags attached. | ||||
I managed to reproduce the problem on a fresh install of MantisBT 1.2.x, after removing 'attachments' from $g_bug_report_page_fields. In that case 'ufile' is not set, so $t_files becomes NULL (bug_report.php line 150) causing the warning in the foreach. |
|
BTW you can squelch the error by setting $g_display_errors[E_WARNING] = DISPLAY_ERROR_NONE; |
|
i havent remove anything from $g_bug_report_page_fields i have only set up $g_allow_file_upload = OFF; |
|
MantisBT: master-1.2.x 604042b9 2014-05-12 00:18 Details Diff |
bug_report.php: fix warning when not using attachments When attachments are not used, 'ufile' is not defined, so $t_files becomes NULL (line 150) causing the 'Invalid argument supplied for foreach' warning. Fixes 0017322 |
Affected Issues 0017322 |
|
mod - bug_report.php | Diff File | ||
MantisBT: master 53d06416 2014-05-12 00:18 Details Diff |
bug_report.php: fix warning when not using attachments When attachments are not used, 'ufile' is not defined, so $t_files becomes NULL (line 150) causing the 'Invalid argument supplied for foreach' warning. Fixes 0017322 |
Affected Issues 0017322 |
|
mod - bug_report.php | Diff File | ||
MantisBT: master-1.2.x 8b2d05da 2014-05-12 02:08 Details Diff |
Issue 0017322: apply same logic in bug_file_add.php |
Affected Issues 0017322 |
|
mod - bug_file_add.php | Diff File | ||
MantisBT: master fd2608dd 2014-05-12 02:08 Details Diff |
Issue 0017322: apply same logic in bug_file_add.php |
Affected Issues 0017322 |
|
mod - bug_file_add.php | Diff File |