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

Bug when duplicating existing voucher #59

Open
milanjandric opened this issue Dec 7, 2020 · 1 comment
Open

Bug when duplicating existing voucher #59

milanjandric opened this issue Dec 7, 2020 · 1 comment

Comments

@milanjandric
Copy link

Description
If you try to duplicate an existing voucher using the save option "Save as new voucher" an Internal Server Error occurs due to the Integrity constraint validation on the voucher SKU field in the giftvouchers_vouchers table.

Steps to reproduce

  1. Create a new voucher.
  2. Click "Save as new voucher"

Additional info

  • Plugin version: 2.5.5
  • Craft version: Craft Pro 3.5.11.1
  • Multi-site: Yes
@engram-design
Copy link
Member

I can't seem to immediately replicate this. It should create the same voucher, but be disabled. This is so the voucher element can be created, with the same identical SKU, but in order to enable it, you need to fix the duplicate SKU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants