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 12:11

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