Add workflow activity, workflow, and hooks for deletion of exported files
on asset trash, purge, and changeUrl. This is kind of crufty. :-\
This commit is contained in:
parent
9a61dd2f38
commit
a1120bc987
8 changed files with 266 additions and 2 deletions
|
|
@ -136,10 +136,13 @@ sub _exportAsHtml {
|
|||
$filename = $index;
|
||||
}
|
||||
|
||||
my $fullPath = (length($path)? "$path/" : "").$filename;
|
||||
if ($asset->getId eq $defaultAssetId) {
|
||||
$defaultAssetPath = $path.'/'.$filename;
|
||||
$defaultAssetPath = $fullPath;
|
||||
}
|
||||
|
||||
$self->session->db->write("UPDATE asset SET lastExportedAs = ? WHERE assetId = ?", [$fullPath, $asset->getId]);
|
||||
|
||||
$path = $exportPath . (length($path)? "/$path" : "");
|
||||
eval { mkpath($path) };
|
||||
if($@) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue