Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Edit Project Name #1416

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def partial_update_project_info(
# Update project informations
if db_project and db_project_info:
if project_metadata.name:
db_project.project_name_prefix = project_metadata.project_name_prefix
db_project.project_name_prefix = project_metadata.name
db_project_info.name = project_metadata.name
if project_metadata.description:
db_project_info.description = project_metadata.description
Expand Down
1 change: 0 additions & 1 deletion src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ async def update_project(

@router.patch("/{project_id}", response_model=project_schemas.ProjectOut)
async def project_partial_update(
project_id: int,
project_info: project_schemas.ProjectPartialUpdate,
db: Session = Depends(database.get_db),
project_user_dict: dict = Depends(project_admin),
Expand Down
Loading