Fixing issue 12
This commit is contained in:
parent
7ebce22300
commit
deca41ba52
@ -477,10 +477,15 @@ class IDF_Views
|
|||||||
$ids[] = $row->model_id;
|
$ids[] = $row->model_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (count($ids) > 0)
|
||||||
|
{
|
||||||
$sql = new Pluf_SQL(sprintf("id IN (%s)", implode(", ", $ids)));
|
$sql = new Pluf_SQL(sprintf("id IN (%s)", implode(", ", $ids)));
|
||||||
return Pluf::factory('IDF_Project')->getList(array(
|
return Pluf::factory('IDF_Project')->getList(array(
|
||||||
'filter'=> $sql->gen(),
|
'filter'=> $sql->gen(),
|
||||||
));
|
));
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
</table>
|
</table>
|
||||||
Projects:
|
Projects:
|
||||||
<table class="form">
|
<table class="form">
|
||||||
|
{if $projects}
|
||||||
{foreach $projects as $p}
|
{foreach $projects as $p}
|
||||||
{if $p.private == 0}
|
{if $p.private == 0}
|
||||||
<tr>
|
<tr>
|
||||||
@ -55,6 +56,13 @@ Projects:
|
|||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
{else}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
This user is not working on any projects
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
</table>
|
</table>
|
||||||
Issues user is working on:<br/><br/>
|
Issues user is working on:<br/><br/>
|
||||||
{$issues.render}
|
{$issues.render}
|
||||||
|
Loading…
Reference in New Issue
Block a user