Commit 509f045d authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1486262: Removing the isset() option from Note content.tpl" into 1.10_STABLE

parents 9122c71c 0c934332
......@@ -56,10 +56,9 @@ class PluginBlocktypeTextbox extends PluginBlocktype {
$attachment->downloadpath .= '&view=' . $viewid;
}
}
$smarty->assign('attachments', $attachments);
$smarty->assign('count', count($attachments));
}
$smarty->assign('attachments', $attachments);
if ($artefact->get('allowcomments')) {
$commentcount = ArtefactTypeComment::count_comments(null, array($configdata['artefactid']));
$commentcount = isset($commentcount[$configdata['artefactid']]) ? $commentcount[$configdata['artefactid']]->comments : 0;
......
{$text|clean_html|safe}
{if isset($attachments)}
{if $attachments}
<table class="cb attachments fullwidth">
<thead class="expandable-head">
<tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment