Unable to clone/duplicate content while using content versioning

I’m using Strapi v4.15.5 & content versioning v1.2.7. The problem is I’m not able to duplicate or clone a post when using content versioning. Instead of cloning the post, it is creating a new version of the existing post.

This issue also explains the bug that I’m facing. How to resolve this?

Bug report

Describe the bug

The problem is I’m not able to duplicate or clone a post when using content versioning. Instead of cloning the post, it is creating a new version of the existing post.

This is the exact issue I’m facing.
#58

Steps to reproduce the behavior

  1. Enable content versioning plugin
  2. Go to Content Manager
  3. Duplicate an existing published post.
  4. Save it, make slight modifications & publish the duplicated post.
  5. The original post gets unpublished & the new post gets published.

Expected behavior

The Expected behaviour is that both the original and duplicated posts should be independent of each other. Both of them should be published independently. There should be no mapping between these 2 posts based on version.

System

  • Node.js version: v16.20.2
  • NPM version: v8.19.4
  • Strapi version: 4.15.5
  • Strapi Content versioning plugin version - 1.2.7
  • Database: MySQL
  • Operating system: MacOS