Skip to content

Deleting part deletes BOM entry #1068

@ARTEL-AP

Description

@ARTEL-AP

Describe the bug
When a part is deleted, the entire entry(row) in the project BOM is also deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Create new Part
  2. Create new Project
  3. Assign this Part in project BOM
  4. Delete Part
  5. See error (empty BOM)

Expected behavior
When deleting a part, only the link of component should be deleted from the BOM list, leaving a blank space for selecting a new part. This preserves the integrity of the BOM, including quantity, name, component designation, etc.

Server Side

  • Part-DB Version: 2.2.0
  • PHP Version: 8.3.6
  • Database Server: MariaDB 10.11.13

Desktop (please complete the following information):

  • OS: Win10
  • Browser: Chrome
  • Version Version 141

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions