[PR #2015] [CLOSED] fix: duplicate document #1993

Closed
opened 2026-02-26 20:31:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2015
Author: @catalinpit
Created: 9/3/2025
Status: Closed

Base: mainHead: fix/duplicate-document-by-id


📝 Commits (1)

📊 Changes

1 file changed (+39 additions, -23 deletions)

View changed files

📝 packages/lib/server-only/document/duplicate-document-by-id.ts (+39 -23)

📄 Description

Description

When recipients duplicate a document, it only duplicates their fields. When an owner duplicates a document, it includes all the initial data.

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2015 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 9/3/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/duplicate-document-by-id` --- ### 📝 Commits (1) - [`913a59e`](https://github.com/documenso/documenso/commit/913a59ec23b7690363c9232ecc115cfb8250c7b1) fix: duplicate document ### 📊 Changes **1 file changed** (+39 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/server-only/document/duplicate-document-by-id.ts` (+39 -23) </details> ### 📄 Description ## Description When recipients duplicate a document, it only duplicates their fields. When an owner duplicates a document, it includes all the initial data. ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:31:58 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1993
No description provided.