Skip to content
Snippets Groups Projects
Commit 3d13c3fd authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

overview: sortorder by label

parent 90559f09
No related branches found
No related tags found
1 merge request!606611 alphabetic order in overview
...@@ -81,7 +81,18 @@ class projectlist extends base{ ...@@ -81,7 +81,18 @@ class projectlist extends base{
foreach (array_keys($oPrj1->getPhases()) as $sPhase) { foreach (array_keys($oPrj1->getPhases()) as $sPhase) {
$sPhaseFilter.='<option value="' . $sPhase . '" >' . $sPhase . '</option>'; $sPhaseFilter.='<option value="' . $sPhase . '" >' . $sPhase . '</option>';
} }
// #6611 Übersichtsseite nach Project Name sortieren
// foreach ($oPrj1->getProjects() as $sPrj) {
$aProjectLabels=[];
foreach ($oPrj1->getProjects() as $sPrj) { foreach ($oPrj1->getProjects() as $sPrj) {
$oPrj = new project($sPrj);
$aProjectLabels[$oPrj->getLabel().'-'.$sPrj]=$sPrj;
}
ksort($aProjectLabels);
foreach (array_values($aProjectLabels) as $sPrj) {
$oPrj = new project($sPrj); $oPrj = new project($sPrj);
$sPrjFilter.='<option value="' . $sPrj . '">' . $oPrj->getLabel() . '</option>'; $sPrjFilter.='<option value="' . $sPrj . '">' . $oPrj->getLabel() . '</option>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment