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
|
|
@ -1947,6 +1947,8 @@ This actually does the change url of the www_changeUrl() function.
|
|||
sub www_changeUrlConfirm {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||
$self->_invokeWorkflowOnExportedFiles($self->session->setting->get('changeUrlWorkflow'), 1);
|
||||
|
||||
if ($self->session->form->process("confirm","yesNo") && $self->session->form->process("url","text")) {
|
||||
$self->update({url=>$self->session->form->process("url","text")});
|
||||
my $rs = $self->session->db->read("select revisionDate from assetData where assetId=? and revisionDate<>?",[$self->getId, $self->get("revisionDate")]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue