Relationship Graph
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035544 | mantisbt | db postgresql | public | 2025-03-06 09:57 | 2025-03-14 19:10 |
Reporter | jacek.nakoneczny | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.27.0 | ||||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0035544: Attempt to update the category in the “Edit Project Category” form results in an error | ||||
Description | Pressing the "Update Category" button in the "Edit Project Category" form (manage_proj_cat_edit_page.php) causes an error: "invalid input syntax for type integer: "FALSE" for query UPDATE mantis_category_table SET name=$1, user=$2, status=$3 WHERE id=$4". | ||||
Additional Information | My data is storage in PostgreSQL 13 database.
| ||||
Tags | No tags attached. | ||||
I can reproduce the behavior. This is because the underlying database column (category.status) is an integer, but since we currently only have 2 possible states we use a checkbox for the UI and treat it as boolean in the code (see MantisBT master 05c1639f). The proper fix is to ensure we pass an int to category_update(). |
|
Regression introduced by 0031017 |
|
MantisBT: master 0b9dd984 2025-03-07 13:17 Details Diff |
Fix error when updating category on PostgreSQL Updating a category results in APPLICATION ERROR 401 Database query failed. Error received from database was #-1: ERROR: invalid input syntax for type integer: "FALSE" This is due to internally handling the category's status as a boolean, while the underlying database column is an integer. Typecasting the Checkbox post variable to int prevents the problem. Fixes 0035544 |
Affected Issues 0035544 |
|
mod - manage_proj_cat_update.php | Diff File |