Fixed bug where collateral files were not deleted from disk, and where types != image were not removed from database

This commit is contained in:
Andy Grundman 2003-06-17 18:57:35 +00:00
parent 61e7baa32f
commit bbdd54cf89
2 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ Returns a list of WebGUI::Collateral objects.
sub multiNew {
my ($class,@collateralIds) = @_;
return () unless @collaterlIds;
return () unless @collateralIds;
my (@objs);

View file

@ -70,7 +70,7 @@ sub recursiveDelete {
# need the following line:
# 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);
}