Fixed the right action when listing by tag the downloads.

dev
Loic d'Anterroches 2008-11-25 20:45:27 +01:00
parent c0918de3dc
commit 7a0a0b523b
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class IDF_Views_Download
'shortname' => $prj->shortname); 'shortname' => $prj->shortname);
$pag->summary = sprintf(__('This table shows the downloads with label %s.'), (string) $tag); $pag->summary = sprintf(__('This table shows the downloads with label %s.'), (string) $tag);
$pag->forced_where = new Pluf_SQL('project=%s AND idf_tag_id=%s', array($prj->id, $tag->id)); $pag->forced_where = new Pluf_SQL('project=%s AND idf_tag_id=%s', array($prj->id, $tag->id));
$pag->action = array('IDF_Views_Download::index', array($prj->shortname)); $pag->action = array('IDF_Views_Download::listLabel', array($prj->shortname, $tag->id));
$pag->edit_action = array('IDF_Views_Download::view', 'shortname', 'id'); $pag->edit_action = array('IDF_Views_Download::view', 'shortname', 'id');
$list_display = array( $list_display = array(
'file' => __('File'), 'file' => __('File'),