Fixed bug showing all the downloads of all the projects in the download area.

This commit is contained in:
Loic d'Anterroches 2008-08-09 23:07:22 +02:00
parent 685d3974e8
commit 88d39faed7

View File

@ -51,6 +51,7 @@ class IDF_Views_Download
$pag->summary = __('This table shows the files to download.'); $pag->summary = __('This table shows the files to download.');
$pag->action = array('IDF_Views_Download::index', array($prj->shortname)); $pag->action = array('IDF_Views_Download::index', array($prj->shortname));
$pag->edit_action = array('IDF_Views_Download::view', 'shortname', 'id'); $pag->edit_action = array('IDF_Views_Download::view', 'shortname', 'id');
$pag->forced_where = new Pluf_SQL('project=%s', array($prj->id));
$list_display = array( $list_display = array(
'file' => __('File'), 'file' => __('File'),
array('summary', 'IDF_Views_Download_SummaryAndLabels', __('Summary')), array('summary', 'IDF_Views_Download_SummaryAndLabels', __('Summary')),