Fixed bug where collateral files were not deleted from disk, and where types != image were not removed from database
This commit is contained in:
parent
61e7baa32f
commit
bbdd54cf89
2 changed files with 2 additions and 2 deletions
|
|
@ -221,7 +221,7 @@ Returns a list of WebGUI::Collateral objects.
|
||||||
|
|
||||||
sub multiNew {
|
sub multiNew {
|
||||||
my ($class,@collateralIds) = @_;
|
my ($class,@collateralIds) = @_;
|
||||||
return () unless @collaterlIds;
|
return () unless @collateralIds;
|
||||||
|
|
||||||
my (@objs);
|
my (@objs);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ sub recursiveDelete {
|
||||||
# need the following line:
|
# need the following line:
|
||||||
# WebGUI::Collateral->multiDelete(collateralFolderId => \@ids);
|
# WebGUI::Collateral->multiDelete(collateralFolderId => \@ids);
|
||||||
|
|
||||||
my @collateralIds = WebGUI::SQL->buildArray("select collateralId from collateral where collateralType='image' and collateralFolderId in (".join(',',@ids).")");
|
my @collateralIds = WebGUI::SQL->buildArray("select collateralId from collateral where collateralFolderId in (".join(',',@ids).")");
|
||||||
WebGUI::Collateral->multiDelete(@collateralIds);
|
WebGUI::Collateral->multiDelete(@collateralIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue