Skip to content

Missing subproject build errors in project BOM after changing parent project #1315

@mkne

Description

@mkne

Project BOM doesn't contain Parts from sub-projects after moving sub-projects from one project to another and project is therefore not saveable.

To Reproduce

  1. Create a Project 2SL with sub-projects Mainboard and Sensorboard
  2. Add Parts to the BOMs of Mainboard and Sensorboard
  3. Set Associated builds part to the Mainboard and Sensorboard projects
  4. Create a second Project 2SL-Archive and save
  5. Change the Parent Project of Sensorboard to 2SL-Archive
  6. Add an image as file attachment to the Project 2SL-Archive and click save
  7. Image can not be saved and screenshot looks similar to the screenshot below
Image

Expected behavior
When assigning a project to a new parent project the BOM of the parent project has to be updated with the parts contained in the sub-project BOM and adding an attachment or saving edits in the parent project are possible.

Server Side

  • Part-DB Version: 2.9.0
  • PHP Version: 8.4.18
  • Database Server: sqlite

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