merging a 6.8.8 change
This commit is contained in:
parent
659b164a42
commit
8b6198220d
2 changed files with 3 additions and 1 deletions
|
|
@ -53,6 +53,7 @@
|
||||||
- fix [ 1437977 ] richeditor selectbox options not versioned, trashed appear
|
- fix [ 1437977 ] richeditor selectbox options not versioned, trashed appear
|
||||||
- fixed a bug in the rich editor where the page chooser didn't have scroll
|
- fixed a bug in the rich editor where the page chooser didn't have scroll
|
||||||
bars
|
bars
|
||||||
|
- fixed a delete bug on cs posts.
|
||||||
|
|
||||||
6.8.7
|
6.8.7
|
||||||
- fix [ 1431098 ] op=becomeUser can become non-existent userIds
|
- fix [ 1431098 ] op=becomeUser can become non-existent userIds
|
||||||
|
|
|
||||||
|
|
@ -738,7 +738,8 @@ sub purge {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $sth = $self->session->db->read("select storageId from Post where assetId=".$self->session->db->quote($self->getId));
|
my $sth = $self->session->db->read("select storageId from Post where assetId=".$self->session->db->quote($self->getId));
|
||||||
while (my ($storageId) = $sth->array) {
|
while (my ($storageId) = $sth->array) {
|
||||||
WebGUI::Storage->get($self->session,$storageId)->delete;
|
my $storage = WebGUI::Storage->get($storageId);
|
||||||
|
$storage->delete if defined $storage;
|
||||||
}
|
}
|
||||||
$sth->finish;
|
$sth->finish;
|
||||||
$self->session->db->write("delete from Post_rating where assetId=".$self->session->db->quote($self->getId));
|
$self->session->db->write("delete from Post_rating where assetId=".$self->session->db->quote($self->getId));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue