Indefero

Indefero Commit Details


Date:2008-08-13 13:47:06 (16 years 4 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3, svn
Commit:2a1628f8ded51f3d1fddbaf5219a3d3857148179
Parents: 2e36487be4065f3645a2cb77596fa8f4abdaefbc
Message:Fixed bug when doing a search with an empty query.

Changes:

File differences

src/IDF/Views/Issue.php
186186
187187
188188
189
189190
190
191
192
191193
192194
193
194195
195196
196197
public $search_precond = array('IDF_Precondition::accessIssues');
public function search($request, $match)
{
$prj = $request->project;
if (!isset($request->REQUEST['q']) or trim($request->REQUEST['q']) == '') {
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::index');
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::index',
array($prj->shortname));
return new Pluf_HTTP_Response_Redirect($url);
}
$prj = $request->project;
$q = $request->REQUEST['q'];
$title = sprintf(__('Search Issues - %s'), Pluf_esc($q));
$issues = new Pluf_Search_ResultSet(IDF_Search::mySearch($q, $prj));

Archive Download the corresponding diff file

Page rendered in 0.07799s using 13 queries.