template attachments are not cleaned up on purge.
This commit is contained in:
parent
5201a1f61b
commit
365d4bfef2
2 changed files with 17 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
7.8.3
|
7.8.3
|
||||||
- fixed #11074: Links to CS posts not working
|
- fixed #11074: Links to CS posts not working
|
||||||
- fixed #11152: Image edits do not autocommit version tags
|
- fixed #11152: Image edits do not autocommit version tags
|
||||||
|
- fixed template attachments are not cleaned up during purge
|
||||||
|
|
||||||
7.8.2
|
7.8.2
|
||||||
- Added scheduled vendor payout workflow activity. (Special thanks to Martin @ Oqapi)
|
- Added scheduled vendor payout workflow activity. (Special thanks to Martin @ Oqapi)
|
||||||
|
|
|
||||||
|
|
@ -719,9 +719,24 @@ sub processRaw {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 purge ( )
|
||||||
|
|
||||||
|
Extend the master to purge attachments in all revisions.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub purgeRevision {
|
||||||
|
my $self = shift;
|
||||||
|
$self->removeAttachments;
|
||||||
|
$self->session->db->write('delete from template_attachments where templateId=?', [$self->getId]);
|
||||||
|
return $self->SUPER::purge(@_);
|
||||||
|
}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 purgeRevision ( )
|
=head2 purgeRevision ( )
|
||||||
|
|
||||||
Override the master purgeRevision to purge attachments
|
Extend the master purgeRevision to purge attachments
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue