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

Cleanup drafts on ticket processing #112

Merged
merged 3 commits into from
Nov 8, 2013

Conversation

greezybacon
Copy link
Contributor

Before, the draft was only cleaned up when progress on the ticket was tracked with the reply box.

@protich
Copy link
Member

protich commented Nov 8, 2013

Why not initiate drafts cleanup in delete & close routines?

… and maybe even have a routine that can be called elsewhere

function deleteDrafts() {
    Draft::deleteForNamespace('ticket.%.' . $this->getId());
}

Jared Hancock added 3 commits November 8, 2013 14:53
Before, the draft was only cleaned up when progress on the ticket was
tracked with the reply box.
protich added a commit that referenced this pull request Nov 8, 2013
Cleanup drafts on ticket processing

Peter Rotich <peter@osticket.com>
@protich protich merged commit c5e608b into osTicket:develop Nov 8, 2013
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

Successfully merging this pull request may close these issues.

2 participants