Indefero

Indefero Commit Details


Date:2008-11-23 10:14:23 (16 years 29 days 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
Commit:ee8d56075d9dbf00d5ccab135136b894ced2e40b
Parents: 7f88056bd9457110c8bb65326bef2dbd8483d74a
Message:Fixed to get consistent listing order.

Changes:

File differences

src/IDF/Views.php
212212
213213
214214
215
215
216
216217
217218
218
219
219220
220221
221222
......
235236
236237
237238
238
239
240
239241
240242
$false = Pluf_DB_BooleanToDb(false, $db);
if ($user->isAnonymous()) {
$sql = sprintf('%s=%s', $db->qn('private'), $false);
return Pluf::factory('IDF_Project')->getList(array('filter'=> $sql));
return Pluf::factory('IDF_Project')->getList(array('filter'=> $sql,
'order' => 'shortname ASC'));
}
if ($user->administrator) {
return Pluf::factory('IDF_Project')->getList();
return Pluf::factory('IDF_Project')->getList(array('order' => 'shortname 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));
return Pluf::factory('IDF_Project')->getList(array('filter' => $sql,
'order' => 'shortname ASC'));
}
}

Archive Download the corresponding diff file

Page rendered in 0.07462s using 13 queries.