View Issue Details

IDProjectCategoryView StatusLast Update
0026835mantisbtattachmentspublic2020-05-03 04:34
ReporterTomekAP Assigned Toatrol  
PriorityurgentSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.23.0 
Target Version2.24.1Fixed in Version2.24.1 
Summary0026835: Database Server error while adding file to project
Description

If one adds file to project documentation:
/proj_doc_add_page.php
one receives:
Unknown column 'bugnote_id' in 'field list' dla zapytania INSERT INTO mantis_project_file_table
( project_id, title, description, diskfile, filename, folder, filesize, file_type, date_added, user_id, bugnote_id, content )
The reason is version 2.23.0:
core/file_api.php: function file_add
Array with columns and values: $t_param contains:
'bugnote_id' => is_null( $p_bugnote_id ) ? null : (int)$p_bugnote_id
and this table is on mantis_bug_file_table, but no project_file.
It should be distinguished like in :
if( 'bug' == $p_table )

TagsNo tags attached.

Relationships

related to 0021733 closedvboctor Attachments should be linkable to notes in db 

Activities

atrol

atrol

2020-03-30 16:17

developer   ~0063807

Thanks @TomekAP for reporting the regression.

I created PR https://github.com/mantisbt/mantisbt/pull/1641 to fix the issue.

TomekAP

TomekAP

2020-03-31 06:48

reporter   ~0063809

Before I reported the issue I had patched mantis in the same way.

Related Changesets

MantisBT: master-2.24 0df0a296

2020-03-30 16:11:06

atrol


Committer: dregad Details Diff
Fix regression when adding files to project documentation

Fixes 0026835
Affected Issues
0026835
mod - core/file_api.php Diff File

Issue History

Date Modified Username Field Change
2020-03-30 14:11 TomekAP New Issue
2020-03-30 16:13 atrol Relationship added related to 0021733
2020-03-30 16:13 atrol Assigned To => atrol
2020-03-30 16:13 atrol Status new => assigned
2020-03-30 16:14 atrol Product Version 2.24.0 => 2.23.0
2020-03-30 16:14 atrol Target Version => 2.24.1
2020-03-30 16:17 atrol Note Added: 0063807
2020-03-30 16:18 atrol Severity minor => major
2020-03-31 06:48 TomekAP Note Added: 0063809
2020-04-01 03:10 dregad Changeset attached => MantisBT master-2.24 0df0a296
2020-04-01 03:10 atrol Status assigned => resolved
2020-04-01 03:10 atrol Resolution open => fixed
2020-04-01 03:10 atrol Fixed in Version => 2.24.1
2020-05-03 04:34 vboctor Status resolved => closed