View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026128 | mantisbt | ui | public | 2019-09-12 03:58 | 2019-09-17 11:31 |
Reporter | cproensa | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | 2.23.0 | ||||
Target Version | 2.23.0 | Fixed in Version | 2.23.0 | ||
Summary | 0026128: Attachments displayed with empty user | ||||
Description | As seen in an example: 0026127 | ||||
Tags | No tags attached. | ||||
2019-09-12 03:58
|
|
First I thought that this was a regression introduced by PR https://github.com/mantisbt/mantisbt/pull/1529, but the same behavior can be observed in 2.22.0 as well. |
|
Nevermind what I wrote in 0026128:0062770 - it does NOT occur in 2.22.0, it is indeed a regression, introduced by MantisBT master 255dfdf2 When adding the attachment, the file_attach_files() function calls file_add() with $p_user_id = 0, while the function expects null to set the default user. |
|
Data fix for attachments having user_id = 0 : set user_id to the linked issue's reporter, if the issue's date_submitted is the same as the attachment's file_added date |
|
MantisBT: master 9d840d2b 2019-09-12 12:47:03 Details Diff |
Add file with default value 'null' for user id This ensures that the file attachment is added with a reference to the current user. Regression introduced by 255dfdf261c42adb76c4f3b6a157186afe999f9b, caused attachments uploaded together with the issue's submission to be linked to user '0' instead of the reporter. Fixes 0026128 |
Affected Issues 0026128 |
|
mod - core/file_api.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-09-12 03:58 | cproensa | New Issue | |
2019-09-12 03:58 | cproensa | File Added: imagen.png | |
2019-09-12 04:37 | dregad | Relationship added | related to 0026082 |
2019-09-12 05:40 | dregad | Status | new => confirmed |
2019-09-12 05:40 | dregad | Note Added: 0062770 | |
2019-09-12 06:01 | dregad | Note Added: 0062772 | |
2019-09-12 11:00 | dregad | Note Added: 0062779 | |
2019-09-13 17:33 | dregad | Assigned To | => dregad |
2019-09-13 17:33 | dregad | Status | confirmed => assigned |
2019-09-13 17:33 | dregad | Note Added: 0062793 | |
2019-09-13 17:33 | dregad | Target Version | => 2.23.0 |
2019-09-17 11:31 | dregad | Changeset attached | => MantisBT master 9d840d2b |
2019-09-17 11:31 | dregad | Status | assigned => resolved |
2019-09-17 11:31 | dregad | Resolution | open => fixed |
2019-09-17 11:31 | dregad | Fixed in Version | => 2.23.0 |