Fixing issue 12

This commit is contained in:
Nathan Adams 2013-08-03 22:58:42 -05:00
parent 7ebce22300
commit deca41ba52
2 changed files with 17 additions and 4 deletions

View File

@ -477,10 +477,15 @@ class IDF_Views
$ids[] = $row->model_id;
}
}
if (count($ids) > 0)
{
$sql = new Pluf_SQL(sprintf("id IN (%s)", implode(", ", $ids)));
return Pluf::factory('IDF_Project')->getList(array(
'filter'=> $sql->gen(),
));
} else {
return null;
}
}
/**

View File

@ -46,6 +46,7 @@
</table>
Projects:
<table class="form">
{if $projects}
{foreach $projects as $p}
{if $p.private == 0}
<tr>
@ -55,6 +56,13 @@ Projects:
</tr>
{/if}
{/foreach}
{else}
<tr>
<td>
This user is not working on any projects
</td>
</tr>
{/if}
</table>
Issues user is working on:<br/><br/>
{$issues.render}