Update tests for bad macros to check template attachments. Fixes bug #12087
This commit is contained in:
parent
73261e4651
commit
83d1897852
6 changed files with 24 additions and 2 deletions
|
|
@ -45,6 +45,16 @@ TEMPLATE: while (my $templateAsset = $getATemplate->()) {
|
|||
type => 'Template',
|
||||
}
|
||||
}
|
||||
foreach my $attachment (@{ $templateAsset->getAttachments }) {
|
||||
if ($attachment->{url} =~ m!$hardcodedExtras! ) {
|
||||
push @hardcodedExtras, {
|
||||
url => $templateAsset->getUrl,
|
||||
id => $templateAsset->getId,
|
||||
title => $templateAsset->getTitle,
|
||||
type => 'Template',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
my $getASnippet = WebGUI::Asset::Snippet->getIsa($session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue