Skip to content

Adding a new 'Category' field to database #365

@GelLiNN

Description

@GelLiNN

Hi phproject!

I've had some great success customizing this application so far, but I'm running into a headache with trying to add a new issue field to the database and the application as a whole.

I'm adding a new 'category_id' entry to the issue table, and a new 'issue_category' table with int IDs and category names. I have 5 categories and I'm going to add the ability to filter by those to the issue browser.

I have already changed the database.sql file to include these new changes and it works great, and have also changed the edit-form.html view to include a dropdown for selecting category, which populates from the database correctly.

The problem is that when I create the new issue or attempt to edit/update the issue, the new category does not make its way into the issue table. Also, on the single.html view when I attempt to display the category with @issue.category it comes back with a 500 field does not exist error.

Any fixes for this or help on implementing these categories would be greatly appreciated!
categories4
categories3
categories2
categories1

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions