Indefero

Indefero Commit Details


Date:2010-12-23 04:31:52 (13 years 11 months ago)
Author:Loïc d'Anterroches
Branch: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
Commit:0739b856e0571c651587e0d4c6415355629437a2
Parents: 80e965a904b1be824b4f294d238c0514e19888c1
Message:Changed to sort the list of projects by name as more natural than by short name.

Changes:

File differences

src/IDF/Views.php
317317
318318
319319
320
320
321321
322322
323
323
324324
325325
326326
......
341341
342342
343343
344
344
345345
346346
if ($user->isAnonymous()) {
$sql = sprintf('%s=%s', $db->qn('private'), $false);
return Pluf::factory('IDF_Project')->getList(array('filter'=> $sql,
'order' => 'shortname ASC'));
'order' => 'name ASC'));
}
if ($user->administrator) {
return Pluf::factory('IDF_Project')->getList(array('order' => 'shortname ASC'));
return Pluf::factory('IDF_Project')->getList(array('order' => 'name ASC'));
}
// grab the list of projects where the user is admin, member
// or authorized
$sql .= sprintf(' OR id IN (%s)', implode(', ', $ids));
}
return Pluf::factory('IDF_Project')->getList(array('filter' => $sql,
'order' => 'shortname ASC'));
'order' => 'name ASC'));
}
}

Archive Download the corresponding diff file

Page rendered in 0.07571s using 13 queries.