lifterlms icon indicating copy to clipboard operation
lifterlms copied to clipboard

Add voucher table cleanup when an llms_voucher post is deleted

Open bsetiawan88 opened this issue 2 years ago • 1 comments
trafficstars

Description

The voucher relationships in lifterlms_vouchers_codes are cleaned up when vouchers are deleted.

Fixes #1087

How has this been tested?

Manually.

Types of changes

Bug fix

Checklist:

  • [x] This PR requires and contains at least one changelog file.
  • [x] My code has been tested.
  • [x] My code passes all existing automated tests.
  • [x] My code follows the LifterLMS Coding & Documentation Standards.

bsetiawan88 avatar Nov 07 '23 00:11 bsetiawan88

Hey @bsetiawan88

Thanks for the contribution.

I'm gonna add:

  • some docblocks
  • a changelog file

actuallyakash avatar Nov 07 '23 05:11 actuallyakash

@bsetiawan88 I don't seem to be able to push changes up to this fork, so I'll close this one and I've created a new one with props to you. Thanks again! https://github.com/gocodebox/lifterlms/pull/2652

brianhogg avatar May 08 '24 13:05 brianhogg