Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Delete trigger bug fix #24

Merged
merged 4 commits into from
Nov 4, 2019
Merged

Delete trigger bug fix #24

merged 4 commits into from
Nov 4, 2019

Conversation

Aquarinte
Copy link
Collaborator

Bug: Unable to delete forum when there are no entries in it.

Problem: Before deleting the forum, the trigger checks for the e_deleted_by col in the corresponding forum entries to ensure that the user giving the delete command has permission to do it. However, this becomes a problem for forum with no entries, as there isn't an e_deleted_by col to check. Therefore, forum deletion fails.

Fix: Add if condition to the trigger func for cases where there are no entries in the forum --> delete the forum.

Copy link
Collaborator

@halcyoneee halcyoneee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@halcyoneee halcyoneee merged commit 021a8ae into DigiPie:dev Nov 4, 2019
@DigiPie DigiPie added this to the v0.1.2 milestone Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants