TT#53760 Consider copy in email templates name checking

Change-Id: I150e63784a06b20cda0c05e2b7ece5c56e511388
changes/09/26009/42
Irina Peshinskaya 7 years ago
parent 2b11a89ad6
commit 3d02b9674a

@ -102,7 +102,7 @@ sub validate {
});
my $current_item = $self->item ? $self->item : $c->stash->{tmpl};
my $current_item_id =
$current_item
$current_item && $c->request->path !~ /\/copy\//
? ref $current_item eq 'HASH'
? $current_item->{id} : $current_item->id
: undef;

Loading…
Cancel
Save